Category: c / c++
The some function in Javascript takes one function callback and returns true if any element in the array passes the test i.e. the function returns true. For example: ages …
Given a List of words, find out the words that can be typed using letters of alphabet on only one row’s of American keyboard like the image below. The …
Given an array of numbers (for simplicity, we use integers), find the maximum value of abs(max left – max right) where we separate the array into two. Mathematically, given …
On Linux, you can search the binaries in the environment PATH variable using the command whereis or which. In here, a simple whereis/which implementation using the Windows Batch command …
Given an array of positive integers from 1 to n, where n is the size of the array, find the missing numbers if any numbers can only appear in …