Median of Array InterviewBit SolutionThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays ( The median of the array formed
Rotated Sorted Array Search InterviewBit SolutionGiven an array of integers A of size N and an integer B. array A is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 mi
Search for a Range InterviewBit SolutionGiven a sorted array of integers A(0 based index) of size N, find the starting and ending position of a given integer B in array A. Your alg
Square Root of Integer InterviewBit SolutionGiven an integer, A. Compute and return the square root of A. If A is not a perfect square, return floor(sqrt(A)).
Sorted Permutation Rank InterviewBit SolutionGiven a string, find the rank of the string amongst its permutations sorted lexicographically. Assume that no characters are repeated.
Trailing Zeros in Factorial InterviewBit SolutionGiven an integer A, return the number of trailing zeroes in A!.
Grid Unique Paths InterviewBit SolutionA robot is located at the top-left corner of an A x B grid. The robot can only move either down or right at any point in time. The robot is
Anti Diagonals Interviewbit SolutionGive a N*N square matrix, return an array of its anti-diagonals. Look at the example for more details.
Spiral Order Matrix II Interviewbit SolutionGiven an integer A, generate a square matrix filled with elements from 1 to A2 in spiral order.
Max Distance Interviewbit SolutionGiven an array A of integers, find the maximum of j - i subjected to the constraint of A[i] <= A[j].