Given an integer n, return 1 ~ n in lexicographical order.For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9].Please optimize your algorit
...
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may comple
...
Go example code中的 urlpoll.go实现在这里.
Go interfacesChannelExample usage here. Channel is a FIFO queue, the send and receive sequence will always be the s
...
The RESTfulConsider a basic rails controller where you have a series of actions: index, show, new, create, etc. It’s OK when in the starting period th
...