-YS-
Friday, December 4, 2015
Flip Game II
›
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and - , you and your...
Thursday, December 3, 2015
LeetCode - 🐶
›
1. Min Stack Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x...
Saturday, November 28, 2015
Strobogrammatic Number II
›
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbe...
Thursday, November 26, 2015
Meeting Rooms II
›
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (s i < e i ), find the minimum numbe...
Game of Life
›
According to the Wikipedia's article : "The Game of Life , also known simply as Life , is a cellular automaton devised by the B...
Wednesday, November 25, 2015
Fraction to Recurring Decimal
›
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part...
Monday, November 23, 2015
Flatten 2D Vector
›
Implement an iterator to flatten a 2d vector. For example, Given 2d vector = [ [1,2], [3], [4,5,6] ] By calling next repeat...
›
Home
View web version