Compare Version Numbers InterviewBit SolutionProblem: Compare Version Numbers Problem Statement: Compare two version numbers version1 and version2. If version1 > version2 return 1,...
Count And Say InterviewBit SolutionThe count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ...
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
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)).
Matrix Median InterviewBit SolutionGiven a matrix of integers A of size N x M in which each row is sorted. Find an return the overall median of the matrix 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
Excel Column Title InterviewBit SolutionGiven a positive integer A, return its corresponding column title as appear in an Excel sheet.
Excel Column Number InterviewBit SolutionGiven a column title A as appears in an Excel sheet, return its corresponding column number.
Power Of Two Integers Interviewbit SolutionGiven a positive integer which fits in a 32 bit signed integer, find if it can be expressed as A^P where P > 1 and A > 0. A and P both shoul