Sum Tree
Given a Binary Tree. Check for the Sum Tree for every node except the leaf node. Return true if it is a […]
Given two sorted arrays arr1 and arr2 and an element k. The task is to find the element that would be at the kth position of
You are given a string str in the form of an IPv4 Address. Your task is to validate an IPv4 Address, if
Given a binary tree, return an array where elements represent the bottom view of the binary tree from left to right.
You are given timings of n meetings in the form of (start[i], end[i]) where start[i] is the start time of meeting i and end[i] is the finish time
A celebrity is a person who is known to all but does not know anyone at a party. A party is being
Given two strings str1 and str2. Return the minimum number of operations required to convert str1 to str2.The possible operations are permitted: Insert a character at any
You are given a rectangular matrix, and your task is to return an array while traversing the matrix in spiral form. Examples: Input: matrix[][]
Given an array of strings arr. Return the longest common prefix among all strings present in the array. If there’s no prefix common in all
Consider a rat placed at (0, 0) in a square matrix mat of order n* n. It has to reach the destination at (n – 1,
Given a boolean 2D array, consisting of only 1’s and 0’s, where each row is sorted. Find the 0-based index of
Given a string str without spaces, the task is to remove all duplicate characters from it, keeping only the first occurrence. Note: The