Since it's Google, candidates can expect to be tested on fundamental Computer Science concepts as well as their front end knowledge/skills.
- How do you make a function that takes f and returns a function that calls f on a timeout?
- Implement the outline view for a Google doc.
- DFS on HTML nodes.
- How do you make a function that only calls input function f every 50 milliseconds?
User interface coding
- Design a slider component.
- Design a Tic-Tac-Toe game/design an algorithm for Tic-Tac-Toe game.
- Implement nested checkboxes (when the parent is checked, children are checked and vice versa. Use
<input type="checkbox">). Similar to Indeterminate checkboxes.
- Practice question on GreatFrontEnd (Paid)
- Example: Number of rows: 4, Number of columns: 5, "Submit" button. Clicking on the "Submit" button will show the following table (ignore the styling):
- Explain the CSS Box Model.
- What happens when you type a URL into the browser and hits enter?
- Given some text on a web page, how many ways can you make the text disappear?
- How do you send data from a web page to a server without a page refresh?
- Design emoji autocomplete.
- Design JS Bin.
- How would you create a Google Analytics SDK used by webpages?
- Minesweeper problem. Write a function
reveal()that outputs the number of tiles shown when a user clicks on a tile. Each tile shows the number of bombs as its neighbor. If the user click on a tile that is a bomb, the game is over. If that tile is 0, reveal all its neighbors.
- You are given four numbers (type int), and have four basic math operators at your disposal (+, -, x, /). Given arbitrary ways to group the numbers and using any of the operators, determine if you can make the number 24 from the four numbers. The numbers must be processed in the order they appear.
- Find k-nearest points.