You are using an outdated browser. Please update your browser for a better user experience.

Problems for February 23rd, 2021

How would you create your own Instagram?

miscellaneous current

Let's design a photo-sharing service like Instagram, where users can upload photos to share them with other users. Plan to design a simpler version of Instagram for this design problem, where a user can share photos and follow other users. The ‘News Feed’ for each user will consist of top photos of...

Sum Root to Leaf Numbers

current tree

Given a binary tree, where every node value is a Digit from 1-9 .Find the sum of all the numbers which are formed from root to leaf paths.

For example consider the following Binary Tree.

There are 4 leaves, hence 4 root to leaf paths:

Answer = 632 + 6357 + 6354 + 654 = 13997

The idea is...

Telephone Question

miscellaneous current

First, you will perform introductions and exchange greetings. Then you may get asked a question to gauge your knowledge of the company or of a specific product. For example:

  • What is your favorite Google product? What would you do to improve it?

Usually, within 10-15 minutes you are asked a tec...