top of page
Search
Find Permutation - Interviewbit Solution
Given a positive integer n and a string s consisting only of letters D or I, you have to find any permutation of first n positive integer th
Next Permutation - Interviewbit Solution
Implement the next permutation, which rearranges numbers into the numerically next greater permutation of numbers for a given array A
Rotate Matrix - Interviewbit Solution
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
You need to do this in place.
Largest Number - Interviewbit Solution
Given a list of non negative integers, arrange them such that they form the largest number.
Maximum Absolute Difference - Interviewbit Solution
You are given an array of N integers, A1, A2 ,…, AN. Return maximum value of f(i, j) for all 1 ≤ i, j ≤ N.
f(i, j) is defined as |A[i] - A[j
Max Sum Contiguous Subarray - Interviewbit Solution
Find the contiguous subarray within an array, A of length N which has the largest sum.
bottom of page