存储:文件存储: FastDFS数据库: MySQL(集群, mster,
Slave读写分离),缓存: Redis, Memcache前端:Jquery, Angular框架:python django
分类:
Web程序 时间:
2014-05-26 11:16:56
阅读次数:
240
原题地址:https://oj.leetcode.com/problems/validate-binary-search-tree/题意:检测一颗二叉树是否是二叉查找树。解题思路:看到二叉树我们首先想到需要进行递归来解决问题。这道题递归的比较巧妙。让我们来看下面一棵树:
...
分类:
编程语言 时间:
2014-05-26 10:48:19
阅读次数:
291
原题地址:https://oj.leetcode.com/problems/same-tree/题意:判断两棵树是否是同一棵树。解题思路:这题比较简单。用递归来做。首先判断两个根节点的值是否相同,如果相同,递归判断根的左右子树。代码:#
Definition for a binary tree n....
分类:
编程语言 时间:
2014-05-26 10:30:17
阅读次数:
289
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given
a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:
编程语言 时间:
2014-05-26 10:18:52
阅读次数:
293
原题地址:https://oj.leetcode.com/problems/n-queens/题意:经典的N皇后问题。解题思路:这类型问题统称为递归回溯问题,也可以叫做对决策树的深度优先搜索(dfs)。N皇后问题有个技巧的关键在于棋盘的表示方法,这里使用一个数组就可以表达了。比如board=[1,
...
分类:
编程语言 时间:
2014-05-26 10:07:52
阅读次数:
274
Given an array S of n integers, are there
elements a, b, c, and d in S such that a + b + c + d = target? Find all unique
quadruplets in the array whic...
分类:
其他好文 时间:
2014-05-26 09:42:30
阅读次数:
209
android:autoLink设置是否当文本为URL链接/email/电话号码/map时,文本显示为可点击的链接。可选值(none/web/email/phone/map/all)
android:autoText如果设置,将自动执行输入值的拼写纠正。此处无效果,在显示输入法并输入的时候起作用。....
分类:
其他好文 时间:
2014-05-26 09:37:22
阅读次数:
213
Given a linked list and a value x, partition it
such that all nodes less than x come before nodes greater than or equal to x.You
should preserve the o...
分类:
其他好文 时间:
2014-05-26 09:35:28
阅读次数:
266
from __future__ import print_functionfrom types
import NoneType__author__ = "Shamim Hasnath"__copyright__ = "Copyright 2013,
Shamim Hasnath"__license_...
分类:
编程语言 时间:
2014-05-26 09:29:50
阅读次数:
495
Python标识符在Python中,标识符有字母数字和下划线组成.在Python中,标识符可以包括英文数字以及下划线但是不能以数字开头.Python中,标识符是区分大小写的.以下划线开头的标识符是由特殊含义的.比如_foo代表不能直接访问的类属性,需通过类提供的接口进行访问,不能用"from
XXX...
分类:
编程语言 时间:
2014-05-26 09:11:50
阅读次数:
319