使用的是scott用户下的emp 和dept表进行操作--(1) 查询20部门的所有员工信息。select * from emp where deptno=20;--(2) 查询所有工种为CLERK的员工的员工号、员工名和部门号。(注意大小写)select empno,ename,deptno fr...
分类:
数据库 时间:
2014-07-11 23:30:03
阅读次数:
421
题目:Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.说明: 1)二叉树可.....
分类:
其他好文 时间:
2014-07-11 21:07:27
阅读次数:
273
题目:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.说明: 1)实现与.....
分类:
其他好文 时间:
2014-07-11 20:40:38
阅读次数:
198
list = [1,1,3,4,6,3,7] 1.for s in list: if list.count(s) >1: list.remove(s) 2.list2=[]for s in list: if s not in list2: list2.ap...
分类:
编程语言 时间:
2014-07-11 11:04:45
阅读次数:
203
os和os.path模块os.listdir(dirname):列出dirname下的目录和文件os.getcwd():获得当前工作目录os.curdir:返回但前目录('.')os.chdir(dirname):改变工作目录到dirnameos.remove(file):删除文件os.path.i...
分类:
编程语言 时间:
2014-07-11 10:50:08
阅读次数:
228
1.利用荷兰国旗的思路,每次记住最后一个位置,遇到一个不重复的数,放在它后面,代码很简单。Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the...
分类:
编程语言 时间:
2014-07-11 09:42:49
阅读次数:
238
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:递归。主要是注意调用时起...
分类:
其他好文 时间:
2014-07-10 14:40:07
阅读次数:
196
如果用db.Accounts.Add() db.A ccounts.Remove()诸如此类的方法做的数据更改就不用加db.Entry(account).State=System.Data.EntityState.Modified;这一句把其状态改成修改的,直接加db.SaveChanges(...
分类:
Web程序 时间:
2014-07-09 14:45:30
阅读次数:
198
2.配置无线
vi /etc/config/wireless
config wifi-device wlan0
option type mac80211
option channel 5
# REMOVE THIS LINE TO ENABLE WIFI:
# 删除或注释掉option disabled...
分类:
其他好文 时间:
2014-07-09 12:37:59
阅读次数:
339
本文适合Vim新手,既可阅读入门相关在线资料http://baike.baidu.com/subview/113188/9338173.htm?fr=aladdinvim的使用之汇总vimtutor(在线学习)功能最强在的编辑器——vimvi是所有UNIX系统都会提供的屏幕编辑器,它提供了一个视窗设备,通过它可以编辑文件。当然,对UNIX系统..
分类:
系统相关 时间:
2014-07-09 08:29:35
阅读次数:
308