码迷,mamicode.com
首页 >  
搜索关键字:depth    ( 1433个结果
fpga rom 初始化mif文件生成
mif文件的格式width=depth=address_radix=data_radix=contentbegin00: ;01: ;02: ;....end;所以只需要用matlab生成中间部分的数,然后添加头尾格式就可以了,当然文件后缀一定得是.mifmatlab例子clcclear al...
分类:其他好文   时间:2015-01-16 18:20:58    阅读次数:207
[C++]LeetCode: 100 Convert Sorted Array to Binary Search Tree (AVL树)
题目:Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 思路:给出一个排序的数组,如何构造一个平衡二叉查找树?平衡二叉查找树要求任一结点的左右子树的高度差不能超过一,也叫做高度平衡树。如果让我们从一个排序数组中选取一个元素做树的根,我们会选择哪一个...
分类:编程语言   时间:2015-01-16 16:51:25    阅读次数:237
2014年总结
2014年总结 2014年,认真仔细的看完了《c# in depth 第二版》这本书,同时自己用php完成了一个项目。原来的.Net项目,负责开发整个核心后台并维护,从十一月份又接手c++开发和网站数据相对应的客户...
分类:其他好文   时间:2015-01-16 16:22:35    阅读次数:196
[C++]LeetCode: 97 Word Search (深度优先搜索)
题目: Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or ver...
分类:编程语言   时间:2015-01-15 16:14:27    阅读次数:301
[C++]LeetCode: 94 Sum Root to Leaf Numbers (先序遍历)
题目: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find...
分类:编程语言   时间:2015-01-14 22:59:16    阅读次数:431
LeetCode--Balanced Binary Tree
Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never diffe...
分类:其他好文   时间:2015-01-14 15:33:12    阅读次数:141
LeetCode--Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. /** * Definition for binary tree *...
分类:其他好文   时间:2015-01-14 12:49:54    阅读次数:131
Maximum Depth of Binary Tree
https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/Given a binary tree, find its maximum depth.The maximum depth is the number of nodes alo...
分类:其他好文   时间:2015-01-13 14:13:55    阅读次数:105
[C++]LeetCode: 91 Path Sum II
题目: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 /...
分类:编程语言   时间:2015-01-12 19:24:15    阅读次数:170
[C++]LeetCode: 89 Same Tree
题目: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. Ans...
分类:编程语言   时间:2015-01-12 16:44:08    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!