Find Permutation - Interviewbit SolutionGiven 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 SolutionImplement the next permutation, which rearranges numbers into the numerically next greater permutation of numbers for a given array A
Rotate Matrix - Interviewbit SolutionYou 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 SolutionGiven a list of non negative integers, arrange them such that they form the largest number.
Flip - Interviewbit SolutionYou are given a binary string(i.e. with characters 0 and 1) S consisting of characters S1, S2, …, SN. In a single operation, you can choose
Maximum Absolute Difference - Interviewbit SolutionYou 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 SolutionFind the contiguous subarray within an array, A of length N which has the largest sum.