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…

Problem: Given an array of heights, find out the max area that can be formed between any two bars. Solution: The…

Given an array of strings, group anagrams together. For example, given:[“eat”, “tea”, “tan”, “ate”, “nat”, “bat”] Return:

1 2 3 4 5 |
[ ["ate", "eat","tea"], ["nat","tan"], ["bat"] ] |

Note: All inputs…