Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.Solution: 1 /** 2 * Definition for singl....
分类:
其他好文 时间:
2014-11-09 00:52:30
阅读次数:
316
Brackets
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3340
Accepted: 1716
Description
We give the following inductive definition of a “regular bracket...
分类:
其他好文 时间:
2014-11-08 23:41:30
阅读次数:
280
1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(i...
分类:
其他好文 时间:
2014-11-08 21:58:27
阅读次数:
179
A suffix array is a sorted array of all suffixes of a given string. The definition is similar to Suffix Tree which is compressed trie of all suffixes ...
分类:
其他好文 时间:
2014-11-08 13:38:45
阅读次数:
193
Abstract. BRep short for Boundary Representation. First give the definition of the BRep, then compare the BRep mode between OpenCASCADE and OpenNURBS....
分类:
其他好文 时间:
2014-11-08 13:21:09
阅读次数:
531
这次是做题最顺的一次,提交两次,耗时1分钟就ac了,错的那次是因为没有考虑到空链表,少了一个判断。/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next...
分类:
其他好文 时间:
2014-11-08 07:04:13
阅读次数:
152
DIRECTORY STRUCTURE
目录结构
-------------------
assets/ contains assets definition
包含资源定义
commands/ contains console commands (controllers)
包含命令行命令,控制器
...
分类:
其他好文 时间:
2014-11-07 17:05:23
阅读次数:
436
上一篇文章中简单的写了一下关于Android中Service的两种启动方式,不过都是本地的服务,今天就简单的写下关于Android中远程Service的使用,学习之前先了解两个概念,AIDL(AndroidInterface definition language)字面上的意思就是借口定义语言,专业...
分类:
移动开发 时间:
2014-11-07 08:36:18
阅读次数:
401
XML Schema 是基于 XML 的 DTD 替代者。XML Schema 描述 XML 文档的结构。XML Schema 语言也称作 XML Schema 定义(XML Schema Definition,XSD)。Shamed解惑:关联Shamed
分类:
其他好文 时间:
2014-11-06 18:59:22
阅读次数:
182
DDL (Data Definition Language 数据定义语言)create table 创建表 alter table 修改表 drop table 删除表 truncate table 删除表中所有行 create index 创建索引 drop index ...
分类:
其他好文 时间:
2014-11-06 14:48:07
阅读次数:
146