Counting Triangles - InterviewBit SolutionYou are given an array of N non-negative integers, A0, A1 ,…, AN-1.Considering each array element Ai as the edge length of some line segment
3 Sum Zero - InterviewBit SolutionGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives
3 Sum - InterviewBit SolutionGiven an array S of n integers, find three integers in S such that the sum is closest to a given number, target.
Pair With Given Difference - InterviewBit SolutionGiven a one-dimensional unsorted array A containing N integers. You are also given an integer B, find if there exists a pair of elements in
Minimum Parantheses! - InterviewBit SolutionGiven a string A of parantheses ‘(‘ or ‘)’. The task is to find minimum number of parentheses ‘(‘ or ‘)’ (at any positions) we must add to
Pretty Json - InterviewBit SolutionGiven a string A representing JSON object. Return an array of the string denoting JSON object with proper indentation.
Minimum Appends for Palindrome! - InterviewBit SolutionGiven a string A consisting of lowercase characters. We need to tell minimum characters to be appended (insertion at end) to make the strin