Rotting oranges
6 min
Given a gif, each cell can have one of the three values. 0 for empty, 1 for fresh Orange and 2 for rotten. Return minimum number of minutes that must elapse until no cell has a fresh Orange
6 min
Given a gif, each cell can have one of the three values. 0 for empty, 1 for fresh Orange and 2 for rotten. Return minimum number of minutes that must elapse until no cell has a fresh Orange
7 min
Given a an array of Sorted K linked lists, merge all K lists in one Sorted linked-list and return it.
5 min
Find two numbers that add up to a Target. Find two numbers in a sorted array that add up to a number. Find three numbers in an array that add up to a Target.
5 min
Given a Unix style absolute path, simplify it and return the shortest canonical path
9 min
Design In-Memory file system to simulate following functions. LS, mkdir, addcontentstofile, rewdcontentsfromfile
5 min
Give a string S and a String T, find the minimum window in S which will contain all characters in T.
5 min
Given a list of scheduled for employees in a company, return free time where no employee is working.
3 min
Find a celebrity in a room where everyone knows the celebrity and celebrity doesn’t know anyone.
8 min
Designing Tic Tac Toe in o(1) complexity. Also thinking how to design infinite Tic Tac toe
4 min
Given an array of intervals find minimum number of Chee conference rooms Required.
4 min
Given a sequence of words written in the alien language, and the order of the alphabet, return true if and only if the given words are sorted lexicographically in this alien language.
Up next