How to find a string in a large file storage
Software Engineer Interview Questions
467,290 software engineer interview questions shared by candidates
First phone screen: Print all the nodes of a tree in reverse level order (ie print all the nodes at the leaves first, then print the nodes on the level above the leaves, and then eventually work your way to the top).
Come up with a formula to calculate the angle between the hour hand and the minute hand in a clock.
- Find k-th element from the end of the singlylinked list in single pass?
Given 2 files, each line in the files is considered an entry. Print the entries that are duplicated in both files such that the number of repeated entries are minumal. Example: File 1: aaa aaa bbb bbb bbb ccc File 2: aaa aaa aaa bbb bbb result: aaa aaa bbb bbb
Given two linked lists, find out IF they intersect.
Given a tree, serialize it into a string that can later be parsed and used to rebuild the original tree.
find LCA for two nodes of a binary tree.
I expected higher level questions for a senior position. I was not expecting all of the questions to be about foundational data structures and algorithms (which I was a bit rusty on).
Write breadth-first search in a matrix
Viewing 1941 - 1950 interview questions