1.Implement queue using two stack (famous interview question) 2.find the anagrams maximum count {"aab", "baa","aba","abc"} that he was asking me to order of n. I have suggested different algo like Trie ,wordMap ,etc but he asked me to algo in o(n) ,i don't think so possible .if somebody know in o(n) share the code with me. 3.given array {10,20,12,10,18,2} etc find the sum of two element 20. 4.find the given no in binary tree ---my answer is level order traversal ..but he doesn't understand he want different solution. 5.continous data stream find the given word ...i have suggested maximum heap implementation and trie
Software Interview Questions
551,343 software interview questions shared by candidates
Replace the number of T's in the word OpenText with the count of that letter ?
After asking the details of my current role, he only gave me a simple coding question. Write a function using C++ or Java that is passed an integer and it returns the number of bits set to 1. Is there a way to improve your solution and make it faster and more efficient?
You have String 1: "abcdefgh". Write a code to remove "ad" so that you are left with "bcefgh".
Given a numerator and a denominator provide the quotient and a remainder with using the division and multiplication operators.
General questions related to personality and technical interests
Organize two arrays into three: Values in both, values in array 1, and values in array 2
Given an array and a target number, T, print out all the pairs in the array that add up to T without printing duplicates. Duplicate: (5,6)=(6,5)
remove all elements from linked list with "n" as their value
how do you check if a number is odd or even?
Viewing 2651 - 2660 interview questions