Flood-fill game. Given a 2D screen, location of a pixel in the screen and a color, replace color of the given pixel and all adjacent same colored pixels with the given color. Input is a 2D matrix, xth and yth of the pixel and the target color. The output should be the 2D matrix after this flood fill game.
Software Development Interview Questions
36,991 software development interview questions shared by candidates
1 algorithm problems about string, and 1 follow up.
Leetcode questions, data structures (trees, graphs, arrays, strings), algorithms. Personality questions based on principles.
Write a program to reverse the words in a sentence. "Sky is blue" would be "blue is sky". Write test cases for this program
I didn't know you were a manager before...where's that?
find word in grid
There are several patients with some boolean type attributes. how to present them in a data structure or in a table? follow up: there are nearly 1000 attributes, most of every patient's attributes value are false, only 4 to 5 are true, how to reduce the table space?
Something along the lines of, if each finger on your hand is numbered 0-9, and each finger has certain keys on a keyboard associated with it, write code that when given a string of digits, such as "3251", prints out all strings that can be typed with each of those fingers typing a letter in that order. For example, in the string above, print all possible strings that can be typed from the 3rd finger typing a letter, then the second, then the 5th, and lastly the first.
There were many questions like"tell us about a hard problem you had to solve" and "did you ever do anything risky" and "did your boss ever ask you to do something that you didn't agree with"
How can you copy files from one directory to another using Python?
Viewing 751 - 760 interview questions