Write a function to search for a string within another string. Analyze it's complexity, and propose optimizations.
Programmer Analyst I Interview Questions
716,641 programmer analyst i interview questions shared by candidates
You have words separated by white spaces. You need to reverse their order in place.
Reverse a string of words "Hi I am John" as "John am I Hi" without using array functions like split , reverse or join?
Use objective-c write code to return the first repeated integer from a given array, with O(n) time
copy ctor, operator overloading, oops concepts, puzzles, data structures.
Write an algorithm to verify if a tree is a binary search tree.
1. Given a string, find the smallest window with greatest no. of distinct characters 2. k sorted array. 3. longest distance between a node and its ancestor.
Divide two numbers without using / or % and return quotient.
In Round 1, Questions were like merge two Strings in alternating manner, one question on pattern matching of 50 marks.
Create a data structure that minimizes time complexity of retrieving median and inserting new element. Getting median should be O(1) and insertion should be O(log(n)).
Viewing 911 - 920 interview questions