Given a string S consisting of uppercase and lowercase letters, the task is to check if uppercase characters are used correctly in the given string… Read More

# Category Archives: Searching

Given a Binary Tree consisting only ‘(‘ and ‘)’ a level is considered to be balanced if the nodes of the level having parenthesis are… Read More

Given an N-ary Tree consisting of N nodes valued from [1, N], where node 1 is the root, the task is to count the pairs… Read More

Given a binary matrix mat[][] of dimension N*M, the task is to check if all 1s in each row are placed adjacently on the given… Read More

Given three positive integers L, R, and K, the task is to find the number from the range [L, R] which requires Kth smallest number… Read More

GUI(Graphical User Interface) helps better in understanding than programs. In this article, we will visualize Ternary Search using JavaScript. We will see how the elements… Read More

Given a Binary Tree consisting of N nodes, the task is to replace all the nodes that are present at even-numbered levels in a Binary… Read More

Given a Binary Tree consisting of nodes with values 0 and 1 only, the task is to find the total sum of the decimal equivalents… Read More

Given a string S of length N, the task is to count the number of substrings made up of a single distinct character.Note: For the… Read More

GUI(Graphical User Interface) helps in better understanding than programs. In this article, we will visualize Binary Search using JavaScript. We will see how the elements… Read More

GUI(Graphical User Interface) helps in better in understanding than programs. In this article, we will visualize Linear Search using JavaScript. We will see how the… Read More

Given an array arr[] consisting of N integers, the task is to find the length of the longest non-decreasing subsequence such that the difference between… Read More

Given an array, arr[] consisting of N integers, the task is to minimize the number of increments of array elements required to make all differences… Read More