Compare Version Numbers InterviewBit Solution

Problem: Compare Version Numbers Problem Statement: Compare two version numbers version1 and version2. If version1 > version2 return 1,...

top of page

Search

Compare Version Numbers InterviewBit Solution

Problem: Compare Version Numbers Problem Statement: Compare two version numbers version1 and version2. If version1 > version2 return 1,...

Count And Say InterviewBit Solution

The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...

Median of Array InterviewBit Solution

There 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 Solution

Given 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 Solution

Given 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 Solution

Given 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 Solution

A 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 Solution

Given a positive integer A, return its corresponding column title as appear in an Excel sheet.

Excel Column Number InterviewBit Solution

Given a column title A as appears in an Excel sheet, return its corresponding column number.

Power Of Two Integers Interviewbit Solution

Given 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

bottom of page