The Fake Geek's blog
Sunday, June 11, 2017
THIS BLOG IS NOT MAINTAINED
›
Hi guys, I really appreciate you supporting this blog and making comments on it. However, I've been very busy in my new job and don...
2 comments:
Thursday, December 1, 2016
LFU cache
›
Design and implement a data structure for Least Frequently Used (LFU) cache. It should support the following operations: get and set . ...
4 comments:
Monday, November 21, 2016
Amazing number
›
Define amazing number as: its value is less than or equal to its index. Given a circular array, find the starting position, such that the ...
1 comment:
First pair non matching leaves
›
Given two (binary) trees, return the first pair of non-matching leaves Tree 1: A, B, C, D, E, null, null Tree 2: A, D, B Output: (E,B) D...
1 comment:
Sunday, November 20, 2016
Image/Video hosting service
›
Functionality This is a very broad question, the first thing is to figure out what's the purpose of this hosing service, is it used fo...
Design news feed
›
News feed is a very interesting problem, it looks very easy, but it can have lots of components. Functionality The basic functionality ...
Facebook typeahead search
›
What is typeahead? That's the search bar on top of the Facebook page. Easy, right? Now the question is how to design it. Unlike ...
›
Home
View web version