She asked for binary search functionality which tells no exists in array or not. Generally we find mid element through (low+high)/ 2 so she asked to change that and use random function to decide mid. Binary search is performed on sorted array but here unsorted array is given. Two modifications are performed on binary search logic. 1) instead of sorted array, unsorted array has been given 2) Mid element is decided based on random function. Now we have to find out numbers from given array for which this function gives true result. Hint: Function will return true for value x, if all numbers on left side of x are small and all number on the right side of x are greater.
Sde Interview Questions
16,594 sde interview questions shared by candidates
Graph, 2 pointer, DP ques. Mod level - leetcode.
They have asked me about my projects
a question from a GRAPHS, that was so HARD, i am not remember the question.
What is the time complexity of sorting an array using merge sort?
Graph dfs traversal question - given n nodes and m edges and we have to tell which of these edges are not friend with other
print the element in sorted order from a binary tree
longest suarray with first value greater than the last value
One DSA question on tree
Implement a new CLI command in memcacheD. Code must compile and pass tests.
Viewing 531 - 540 interview questions
See Interview Questions for Similar Jobs
Ruby DeveloperRuby On Rails DeveloperRuby On Rails Software EngineerSoftware TraineeSoftware Engineer C#Ruby On Rails Ror GithubRails DeveloperSoftware Engineer Front EndSoftware Engineer Developer Entry Level Ruby On RaSoftware Developer Entry LevelSoftware Developer FresherSoftware Engineer CoopSenior Ruby On Rails DeveloperJunior Ruby On Rails DeveloperSoftware Applications DeveloperSoftware Engineer Web DeveloperPhp Software DeveloperSoftware Engineer Ux