Graph and QueriesTime limit: 3.000 secondYou are given an undirected graph withNvertexes andMedges. Every vertex in this graph has an integer value as...
分类:
其他好文 时间:
2014-06-27 15:37:28
阅读次数:
239
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
分类:
其他好文 时间:
2014-06-27 12:48:46
阅读次数:
259
Reverse digits of an integer.
分类:
其他好文 时间:
2014-06-27 12:41:43
阅读次数:
211
Given an integer, convert it to a roman numeral.
分类:
其他好文 时间:
2014-06-27 12:41:06
阅读次数:
199
Given an unsorted integer array, find the first missing positive integer.
分类:
其他好文 时间:
2014-06-27 12:39:02
阅读次数:
185
Given a roman numeral, convert it to an integer.
分类:
其他好文 时间:
2014-06-27 12:33:17
阅读次数:
179
Determine whether an integer is a palindrome. Do this without extra space.
分类:
其他好文 时间:
2014-06-27 12:28:06
阅读次数:
228
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-06-27 12:21:24
阅读次数:
215
Implement atoi to convert a string to an integer.
分类:
其他好文 时间:
2014-06-27 12:08:39
阅读次数:
143
题目:输入一个英文句子,翻转句子中单词的顺序,但单词内字符顺序不变题解分析:两次翻转:第一次翻转整个句子第二次解析出每个单词并将单词翻转void reverse(char* first, char* last){ assert(first != NULL && last != NULL); ...
分类:
其他好文 时间:
2014-06-27 12:04:29
阅读次数:
174