Connect Four is a game where two players take turns dropping their color discs into a vertically suspended grid. The game ends when a player adds a disc to the playing grid that connects four discs of their color. The connected discs can be in a horizontal, vertical or diagonal line. Write a function to be called after every turn that returns true if the game is over (and false otherwise).
Software Engineer Intern Interview Questions
9,436 software engineer intern interview questions shared by candidates
How would you sort an array if you had infinite RAM? Infinite memory?
What is the difference between a FlipFlop and a latch?
Give the sizeof of the following struct : struct{ char a,b; int c; }
how do you find out if there is a cycle in linked list.
Write a function to return the longest common prefix between two strings.
Given list of revision numbers and build statuses (OK or FAILED). Example : { (10001,OK ) , (10002, OK) , (10003, FAILED) , (10004,FAILED) } Find number of revision where build has failed in first time.
Given a really big file with a lots of Facebook posts, find the ten most used words.
4. What is the format of the floating point number? What does the following code do? Does it terminate? Float f,g; f=0; do{ g=f++; } While ((f-g)!=0);
Given an array of 1000 element, how will you find the element repeated twice in O(n) complexity
Viewing 101 - 110 interview questions