Given a sorted array, find how many times a specified element appears.
Software Interview Questions
748,248 software interview questions shared by candidates
Search smallest value from a tree. What if you have enough memory, how to improve the speed?
Given an array of numbers, there is one number that has a duplicate. How would you find the number?
Find if there are two members of an array that sum to 10 (10 and 0 count, but 10 alone does not).
Hardest things to unit test
Given two sorted integer arrays, write an algorithm to get back the intersection.
How to find anagrams in a sentence ?
Mostly the concepts of array and string manipulation. You are given an array with distinct numbers between 1 to 100. You have to return You have to return a string which says the number's range which are not in the given array separated by comma. Eg: Input: [50,75] Output: (0-49,51-74,76-100)
Search a target number in a Rotated Sorted Array.
/* Some examples: isMatch(“aa”,”a”) ? false isMatch(“aa”,”aa”) ? true isMatch(“aaa”,”aa”) ? false isMatch(“aa”, “a*”) ? true isMatch(“aa”, “.*”) ? true isMatch(“ab”, “.*”) ? true isMatch(“aab”, “c*a*b”) ? true Write isMatch() */
Viewing 1121 - 1130 interview questions