### Binary Tree - Level Order Traversal

Problem Statement Given a Binary tree, print out nodes in level order traversal from left to right. Approach-1 Use BFS (Breadth First Search…

Problem Statement Given a Binary tree, print out nodes in level order traversal from left to right. Approach-1 Use BFS (Breadth First Search…

Problem Statement Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d…

Problem Statement You are given a string text of words that are placed among some number of spaces. Each word consists of one or more…

Problem Statement You are given a rows x cols matrix grid. Initially, you are located at the top-left corner (0, 0), and in each step, you…

Problem Statement Given a string s, return the maximum number of unique substrings that the given string can be split into. You can split…

Problem The Leetcode file system keeps a log each time some user performs a change folder operation. The operations are described below…

Problem Statement Replace all spaces in a string with ‘%20’ (three characters). Do this in place and assume you have enough space in array…

Problem Implement an algorithm to determine if a string has all the characters as unique. Lets try to understand the problem first. Always…

Problem Statement Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For…

Problem Statement Given two strings s and t , write a function to determine if t is an anagram of s. Example Note: You may assume the…

Problem Statement Given a string, find the first non-repeating character in it and return its index. If it doesn’t exist, return -1. Example…

Problem Statement Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra…

Problem Statement You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the…

Problem Statement Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules…

Problem Statement Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non…

Problem Statement Given a non-empty array of digits representing a non-negative integer, increment one to the integer. The digits are stored…

Problem Statement Given two arrays, write a function to compute their intersection. Example Note: Each element in the result should…

Problem Statement Given an array of integers, find if the array contains any duplicates. Your function should return true if any value…

Problem Statement Given a non-empty array of integers, every element appears twice except for one. Find that single one. Example Solution…

Problem Statement Maximum Length of Subarray With Positive Product. Given an array of integers nums, find the maximum length of a subarray…

Problem Statement Given an array, rotate the array to the right by k steps, where k is non-negative. Example Solution (Simple) Its like…

Problem Statement Say you have an array prices for which the ith element is the price of a given stock on day i. Design an algorithm to find…

Problem Statement Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new…

In previous post (Trigger Email on Blob Trigger), we saw how we can create such automation pipeline to get email notification every time…

A Binary Search tree (BST) is a data structure which has two children nodes attached to it, called left and right node. There is a special…

A Binary tree is a data structure which has two children nodes attached to it, called left and right node. Do remember, its different from a…

First try to understand question. Its a binary tree, not a binary search tree Find first common ancestor There is no link to parent nodes…

Introduction In this post, we will see how to theme form and its fields. Assumming we are having a content type: , and it is having…

Introduction In Azure, assuming you are having a storage container. And, you want to get an alert email if there are anything changes in…

Introduction In this guide, We will learn about branching, handling conflict resolution during merge. I hope you have seen previous git…

Introduction In this post, we will learn about some of Best practices while working in git. I hope you have seen previous git training posts…

Introduction In this post, we will see ways to look at git history logs. For other git training posts, visit: Git Basic Commands Creating…

Introduction In this guide, We will get basic understanding of various options. We will see: Diff between Local Working Dir and Staging…