码迷,mamicode.com
首页 >  
搜索关键字:to the gcc binary    ( 19550个结果
LeetCode:Same Tree
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 n...
分类:其他好文   时间:2014-06-19 12:49:17    阅读次数:301
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...
分类:其他好文   时间:2014-06-19 11:23:05    阅读次数:204
gcc使用教程
gcc是一个编译器,下面以例子来学习如何使用这个编译器。 /*File:hello.c*/ #include int main(int argc, char **argv) { printf("Hello world.\n"); return 0; }编辑好hello.c文件后,用gcc编译器编译它:gcc hello.c 执行完该命令后,生成可执行文件a.out,执行该文件,即可在终端...
分类:其他好文   时间:2014-06-19 10:14:52    阅读次数:368
[leetcode]Gray Code @ Python
原题地址:https://oj.leetcode.com/problems/gray-code/题意:The gray code is a binary numeral system where two successive values differ in only one bit.Given a...
分类:编程语言   时间:2014-06-16 07:42:27    阅读次数:242
树状数组
一、树状数组树状数组是一个优美小巧的数据结构,在很多时候可以代替线段树。一句话概括就是,凡是树状数组可以解决的问题,线段树都可以解决,反过来线段树可以解决的问题,树状数组不一定能解决。树状数组英文名称为Binary Index Tree,直译过来就是二进制索引树,我觉得二进制索引树更能说明其本质。树...
分类:其他好文   时间:2014-06-16 07:24:03    阅读次数:190
Leetcode | Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.递归,二分法。 1 /** 2 * Definition for binary tree 3 * st.....
分类:其他好文   时间:2014-06-16 00:33:31    阅读次数:252
Debian5.04安装oracle11g 笔记
新安装了Debian5,成功安装了oracle11g.记录过程如下。1、升级一下系统#apt-get update#apt-get upgrade2、安装需要的一些组件:#apt-get install gcc make binutils lesstif2 libc6 libc6-dev rpm l...
分类:数据库   时间:2014-06-16 00:15:41    阅读次数:448
debian7安装oracle11g
1,安装必须包apt-get install gcc g++ make binutils libc6 libc6-dev libstdc++6 libstdc++5 rpm gawk alien ksh lesstif2 libaio1 linux-headers elfutils libaio-d...
分类:数据库   时间:2014-06-16 00:11:03    阅读次数:346
Leetcode:Path Sum 二叉树路径和
Path Sum:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the giv...
分类:其他好文   时间:2014-06-13 16:09:02    阅读次数:237
leetcode--Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:其他好文   时间:2014-06-13 15:11:35    阅读次数:273
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!