码迷,mamicode.com
首页 >  
搜索关键字:reverse nodes    ( 8673个结果
[leetcode] Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
分类:其他好文   时间:2014-07-10 00:18:17    阅读次数:278
Clone Graph
题目 Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separa...
分类:其他好文   时间:2014-06-30 09:01:23    阅读次数:197
【LeetCode】 Maximum Depth of Binary Tree
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:其他好文   时间:2014-06-27 23:13:24    阅读次数:218
[leetcode] Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
分类:其他好文   时间:2014-06-27 12:42:55    阅读次数:198
[leetcode] Reverse Integer
Reverse digits of an integer.
分类:其他好文   时间:2014-06-27 12:41:43    阅读次数:211
[leetcode] Add Two Numbers
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
剑指offer (42) 单词翻转
题目:输入一个英文句子,翻转句子中单词的顺序,但单词内字符顺序不变题解分析:两次翻转:第一次翻转整个句子第二次解析出每个单词并将单词翻转void reverse(char* first, char* last){ assert(first != NULL && last != NULL); ...
分类:其他好文   时间:2014-06-27 12:04:29    阅读次数:174
Vertica数据库常用管理命令汇总
1.查询数据库是否有等待select * from resource_queues where node_name=(select node_name from nodes order by node_name limit 1) order by queue_entry_timestamp desc...
分类:数据库   时间:2014-06-27 12:03:53    阅读次数:680
LeetCode OJ - Add Two Numbers
题目: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 sing...
分类:其他好文   时间:2014-06-27 11:38:12    阅读次数:207
Leetcode Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key....
分类:其他好文   时间:2014-06-27 09:15:12    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!