码迷,mamicode.com
首页 >  
搜索关键字:definition    ( 2735个结果
mysql 内存占用过多的解决方法
以下是5.6默认的设置performance_schema_max_table_instances12500table_definition_cache1400table_open_cache2000修改my.ini配置文件:(没有就如下内容就在最后一行新增)performance_schema_m...
分类:数据库   时间:2014-11-10 19:38:10    阅读次数:317
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. 递归版 /** * Definition for singly-linked list. ...
分类:其他好文   时间:2014-11-10 13:55:03    阅读次数:195
Binary Tree Preorder Traversal (非递归实现)
具体思路参见:二叉树的非递归遍历(转)/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int...
分类:其他好文   时间:2014-11-10 11:47:59    阅读次数:157
POJ2955——Brackets
Brackets Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3341   Accepted: 1717 Description We give the following inductive definition of a “regular brackets”...
分类:其他好文   时间:2014-11-10 10:08:53    阅读次数:138
[LeetCode]Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. /** * Definition for sin...
分类:其他好文   时间:2014-11-10 10:07:22    阅读次数:156
LeetCode Minimum Depth of Binary Tree 找最小深度(返回最小深度)
题意:找到离根结点最近的叶子结点的那一层(设同一层上的结点与根结点的距离相等),返回它所在的层数。方法有:1、递归深度搜索2、层次搜索方法一:递归(无优化) 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * i...
分类:其他好文   时间:2014-11-09 22:12:11    阅读次数:184
C++部分术语(Terms)
翻译自msdn,如有不妥当的地方,欢迎指正。声明(Declaration):声明引入了一个名字以及其类型进入程序中,并没有定义一个相关的对象或者函数。然而,很多声明都作为定义使用。定义(definition):定义提供了 允许编译器为对象分配内存和生成函数代码的信息。生命周期(lifetime):一...
分类:编程语言   时间:2014-11-09 15:05:18    阅读次数:155
二叉树的各种遍历算法-leetcode Binary Tree Postorder Traversal 扩展
二叉树的各种遍历方法有 前序遍历 中序遍历 后序遍历 层序遍历。其中前三种遍历有递归程序可以实现,但是我们也有必要掌握其非递归版本的算法实现。正好在leetcode中遇到了遍历二叉树的问题,今天在这里一并总结了。首先,引用leetcode中关于二叉树节点的定义。1 // Definition ...
分类:编程语言   时间:2014-11-09 12:37:56    阅读次数:329
Leetcode-Construct Binary Tree from inorder and postorder travesal
Given inorder and postorder traversal of a tree, construct the binary tree.Solution: 1 /** 2 * Definition for binary tree 3 * public class TreeNode .....
分类:其他好文   时间:2014-11-09 06:16:44    阅读次数:215
Leetcode-Convert Sorted Array to BST
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.Solution: 1 /** 2 * Definition for binary tree 3 * .....
分类:其他好文   时间:2014-11-09 00:58:31    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!