Write code for Anagram
Software Engineer Interview Questions
467,307 software engineer interview questions shared by candidates
Basic 11 and 12 school mathematics were asked
Coding questions will be very basic like FizzBuzz program, Prime number... etc.
Given a string s (1<=s.length()<=1000), return the shortest substring that is only occurring once. Examples: s="aabbabbaab" gives either "bab" or "baa" s="aaaa" gives "aaaa"
Unexpected question - Guess the number I am thinking of which is between 1 and 100 by asking minimal Yes or No questions.
A windowless room has 3 lightbulbs. You are outside the room with 3 switches, each controlling one of the lightbulbs. If you can only enter the room one time, how can you determine which switch controls which lightbulb?
You and the interviewer play a game. There are piles of stones on a table, each with a different number of stones. On your turn, you can take from the table any positive number of stones from any single pile. The person who takes the last stone wins. What's your move?
Remove a node in a singly linked list, which is pointed to, in O(1). If you know the trick, its easy, otherwise, you can only do O(N).
How would you find the shortest path between two nodes in a graph? Write code in Java to do this.
Remove duplicates in an unsorted array where the duplicates are at a distance of k or less from each other.
Viewing 2281 - 2290 interview questions