码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
iOS-版本适配
1. 框架的可用性检查 弱链接某框架(方法:targets--Bulid Phases--Link Binary With Libraries,在需要使用弱链接的框架上,把默认的Required,改成Optional)2. 类的可用性检查 id myObj = [[NSClassFromString...
分类:移动开发   时间:2015-09-21 17:54:18    阅读次数:168
二叉排序树(Binary Sort Tree)
参考文章:http://blog.csdn.net/ns_code/article/details/19823463不过博主的使用第一种方法操作后的树已经不是二叉排序树了,值得深思!!#include "stdio.h"#include "stdlib.h"//二叉链表结点 typedef stru...
分类:编程语言   时间:2015-09-21 17:45:33    阅读次数:253
cocos2d-js 学习笔记
/bin/sh: /Users/linshunrong/Documents/cocos/CocosJSGame/runtime/mac/PrebuiltRuntimeJs.app/Contents/MacOS/._PrebuiltRuntimeJs Mac: cannot execute binary file 2015-09-21 猜测转换成2进制文件后,执行出...
分类:Web程序   时间:2015-09-21 10:40:07    阅读次数:157
9.21-9.27
1.Flatten Binary Tree to Linked List 1 //dfs、前序遍历一下即可 2 class Solution { 3 public: 4 void dfs(TreeNode* root, TreeNode* &pre) 5 { 6 if...
分类:其他好文   时间:2015-09-21 09:12:20    阅读次数:166
Maximal Square 解答
QuestionGiven a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the follow...
分类:其他好文   时间:2015-09-21 09:09:16    阅读次数:198
Binary Tree Level Order Traversal
public List> levelOrder(TreeNode root) { List> ret = new ArrayList>(); if(root == null) return ret; ArrayDeque...
分类:其他好文   时间:2015-09-21 07:01:04    阅读次数:120
Binary Tree Preorder Traversal
public List preorderTraversal(TreeNode root) { List ret = new ArrayList(); if(root == null) return ret; ...
分类:其他好文   时间:2015-09-21 07:00:14    阅读次数:182
Unique Binary Search Trees II 解答
QuestionGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return a...
分类:其他好文   时间:2015-09-21 06:58:04    阅读次数:202
二叉树反转
invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1递归代码1:TreeNode* invertTree(TreeNode* ro...
分类:其他好文   时间:2015-09-21 01:20:50    阅读次数:243
[LeetCode#87] Scramble String
Problem:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible repres...
分类:其他好文   时间:2015-09-20 23:51:57    阅读次数:257
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!