Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes ...
分类:
其他好文 时间:
2015-07-26 11:11:32
阅读次数:
136
I hope you know the beautiful Union-Find structure. In this problem, you're to implement something similar, but not identical.
The data structure you need to write is also a collection of disjoint ...
分类:
其他好文 时间:
2015-07-26 11:10:15
阅读次数:
93
【030-Substring with Concatenation of All Words(串联所有单词的子串)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 You are given a string, s, and a list of words, words, that are all of the same length. Find all starting...
分类:
编程语言 时间:
2015-07-26 07:32:10
阅读次数:
208
【032-Longest Valid Parentheses(最长有效括号)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses su...
分类:
编程语言 时间:
2015-07-26 07:31:04
阅读次数:
198
You can find Dapper on Google Code here:http://code.google.com/p/dapper-dot-net/and the GitHub distro here:https://github.com/SamSaffron/dapper-dot-ne...
分类:
移动开发 时间:
2015-07-26 06:05:54
阅读次数:
206
Find a wayTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6251Accepted Submission(s): 2081Problem ...
分类:
其他好文 时间:
2015-07-26 00:22:13
阅读次数:
103
1、Db.query,返回的是List<Model>类型,实际上返回的却是 Model 的数组; ? ? 2、Db.find,返回List<Reocrd>类型,实际上是recrod的 list; ? ? 3、所以相关Mode中的dao只有find,没有query,只有Db类...
分类:
数据库 时间:
2015-07-25 23:08:19
阅读次数:
481
看书虽然有必要,但是光看书大家斗志到是没用的,但是没办法,科研项目和互联网没关,只能找点题目来刷了!
不多说,开始!
LeetCode_1 TwoSum
题目说明:
Given an array of integers, find two numbers such that they add up to a specific target number.
The fu...
分类:
其他好文 时间:
2015-07-25 23:06:34
阅读次数:
292
https://leetcode.com/problems/longest-palindromic-substring/题目:Given a stringS, find the longest palindromic substring inS. You may assume that the ma...
分类:
其他好文 时间:
2015-07-25 22:46:20
阅读次数:
200
总结:1.注意,以下xxx皆为项目名2.xcode进入Archives,选择打包上架的版本,showinfinder,打开包内容,dSYMs,xxx.app.dSYM,显示包内容,Contents,Resources,DWARF,xxx3.将xxx拷进crash所在文件夹4.在终端找symbolicatecrash工具find/Applications/Xcode6.1.app-namesymbolicate..
分类:
移动开发 时间:
2015-07-25 20:09:28
阅读次数:
162