There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs... Read More
posted @ 2014-07-16 20:38
Xylophone
Views(132)
Comments(0)
Diggs(0)
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word ... Read More
posted @ 2014-07-16 12:00
Xylophone
Views(117)
Comments(0)
Diggs(0)
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.#include#includeusing namespace std;struct ListNode ... Read More
posted @ 2014-07-16 11:44
Xylophone
Views(105)
Comments(0)
Diggs(0)
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ... Read More
posted @ 2014-07-16 11:16
Xylophone
Views(137)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号