This question was asked in hacker rank to fix the minor bug in the program such a way it passes…
Problem: Given an array of heights, find out the max area that can be formed between any two bars. Solution: The…
Match the braces and verify whether all the opening braces has the closing braces in right order. Input: String of…
The caterpillar problem. Input: int[] caterPillar = {2,4,5} int totalLeaves = 10 Here, you will have fixed size array with integer elements…
Problem: Finding the number of perfect squares between two integer range. Input: first integer and last integer -> int startInteger,…
Input: Integer array Diff: Integer difference Output: Total number of unique pairs having difference provided in the input. Here in…
Input: Integer array with 0 or more repeated values. Output: Total number of duplicate numbers present in the given array…
Input: X and Y are integer values, where X < Y N is the length of permutation Output: To print…
Goal: Verify pre order sequence of Binary Search Tree (BST) Problem: You have an array of preorder traversal of Binary Search Tree…