Python(我一直不能忍受我的解答不够简短QAQ):
"""
Programmer : EOF
Date : 2015.04.14
File : atn.py
E-mail : jasonleaster@gmail.com
"""
# Definition for singly-linked list.
class ListN...
分类:
其他好文 时间:
2015-04-15 01:02:39
阅读次数:
240
Data Warehouse Definition Different people have different definitions for a data warehouse. The most popular definition came from Bill Inmon, who provided the following: A data warehouse is a subje...
分类:
其他好文 时间:
2015-04-14 13:12:07
阅读次数:
106
Given an array where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for binary tree * public class TreeN...
分类:
其他好文 时间:
2015-04-12 20:38:48
阅读次数:
159
好久不写了,最近忙毕业论文呢。这个题,就是说一个二叉树,你从右边看,你能看到的数有哪些(会被遮挡)其实抽象出来就是说。。。二叉树每层最右边的数有哪些。。那我们按层遍历一次就好了。/** * Definition for binary tree * struct TreeNode { * in...
分类:
其他好文 时间:
2015-04-12 20:37:02
阅读次数:
110
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *rot...
分类:
其他好文 时间:
2015-04-12 00:05:22
阅读次数:
128
update语法Single-table语法:UPDATE [LOW_PRIORITY] [IGNORE] tbl_name SET col_name1=expr1 [, col_name2=expr2 ...] [WHERE where_definition] [ORDER BY...
分类:
数据库 时间:
2015-04-11 17:36:48
阅读次数:
131
题目地址:https://leetcode.com/problems/balanced-binary-tree/题目解答:/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode ...
分类:
其他好文 时间:
2015-04-11 13:13:13
阅读次数:
100
一、AIDL是什么?
AIDL(Android Interface Definition Language)是Android接口定义语言,用于进程间的通信(IPC),它能实现让多个应用程序组件之间与某个Service进行跨进程通信,从而实现多个应用程序共享一个服务的功能。
二、为什么要通过AIDL进行IPC通信?
系统为一个应用分配一个进程,进程运行在自己的内存空间,一个进程不能直接访问另外...
分类:
其他好文 时间:
2015-04-10 18:11:25
阅读次数:
519
题意Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.思路基本的深搜,注意一点就是必须是根到叶子节点求和,不可在非叶子节点处停。代码/**
* Definition for binary tree
* struct TreeNode {
*...
分类:
其他好文 时间:
2015-04-09 17:25:31
阅读次数:
147
题目:
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.分析:
将已经排序好的数组转成高度平衡的二叉排序树。
依旧二分法。C++参考代码:/**
* Definition for binary tree
* struct TreeNode {...
分类:
其他好文 时间:
2015-04-09 13:51:49
阅读次数:
112