Given heads of two linked lists. Find if the two linked lists intersect. Solution should not use extra memory.
Engineer Interview Questions
933,739 engineer interview questions shared by candidates
Print a singly-linked list backwards, in constant space and linear time.
Mark likes to listen to music while travelling. His iPod™ contains N songs and he wants to listen to L (not necessarily different) songs during a trip. So he creates a playlist such that: • Every song is played at least once. • A song can be played again only if at least K other songs have been played Mark wants to know how many different playlists are possible. Can you help Mark determine this number? As the number can be very large, display number modulo 1,000,000,007. You are given N, K and L.
You have 2 buckets in a room and one bucket has 17 Red balls, 19 Green Balls, 21 Blue Balls, 23 Yellow Balls. You are blindfolded and you need to pick one ball at a time and put in the bucket#2. You should stop at a point where you are confident that the color of the ball you are putting in already exists in the bucket#2. When would you stop?
Strengths and weaknesses
input string = aabbbccccaaa, maintain the insertion order and output should be a2b3c4a3
If you have a file containing millions of integers, how would you sort the data in the file using extremely limited resources, such a s 1GB of memory?
Given an array with numbers 1-5, how would you subtract one number from every EVEN number in each index?
a detailed troubleshooting scenario for VPN was asked. a site-to-site VPN, user from one site cannot get to a resource on another site.
evaluate an expression following BODMAS rules
Viewing 311 - 320 interview questions