Problem: Given the nested list of integer, calculate the depth sum. Sample Input: [[1,1], 2, [1,1]] Output: 10 Explanation: 1* 2 +…

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…

Input: array of integer value Output: print each iteration by subtracting the smallest elements till array becomes empty For example:…