Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Input: [10,9,2,5,3,7,101,18 Output: 4 Explanation: The longest…

Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or…

This article will describe how you can write your own Custom getElementByAttribute function and it is a common JavaScript/FrontEnd interview question. It…

This is also one of the most common questions you will find in your JavaScript or FrontEnd interview questions. The idea…

JavaScript or FrontEnd interviews be tricky sometimes. These questions aim at testing your understanding of JavaScript concepts like – hoisting, closures,…

Question: Find a rectangle of 0s in matrix of 1s and 0s Input:

1 2 3 4 5 6 7 8 9 10 |
{0,1,1,1,1,1,1}, {1,1,1,1,1,1,1}, {1,1,1,1,1,1,1}, {1,1,1,0,0,1,1}, {1,1,1,0,0,1,1}, {1,1,1,0,0,1,1}, {1,1,1,0,0,1,1}, {1,1,1,0,0,1,1}, {1,1,1,1,1,1,1}, {1,1,1,1,1,1,1} |

Output: [[0, 0], [0, 0], [3, 3],…

Problem: Print all combinations of points from given a set of input that can compose a given number. (Recursive and…

Question: Suppose we have some input data describing a graph of relationships between parents and children over multiple generations. The…

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…