04 2016 档案

接人待物的准则
摘要:1、别人给倒水时,不要干看着,要用手扶扶,以示礼貌2、别人对你说话,你起码要能接话,不能人家说了上句,你没了下句,或者一味的说着啊啊啊,是是是.3、有人盯着你看的时候不要直视对方,假装没注意到. 4、心情不好,再好的护肤品和化妆品也补救不了皮肤.5、睡眠不好,会使人说话语无伦次,反应迟钝,黑眼圈突出 阅读全文

posted @ 2016-04-28 16:04 Alex0111 阅读(1146) 评论(0) 推荐(0)

primary key和unique的区别
摘要:定义了 UNIQUE 约束的字段中不能包含重复值,可以为一个或多个字段定义 UNIQUE 约束。因此,UNIQUE 即可以在字段级也可以在表级定义, 在 UNIQUED 约束的字段上可以包含空值。ORACLE自动会为具有 PRIMARY KEY 约束的字段(主码字段)建立一个唯一索引和一个NOT N 阅读全文

posted @ 2016-04-22 20:17 Alex0111 阅读(365) 评论(0) 推荐(0)

交叉连接,内连接,外连接的区别
摘要:连接分为:内连接、外连接、交叉连接一、内连接——最常用 定义:仅将两个表中满足连接条件的行组合起来作为结果集。 在内连接中,只有在两个表中匹配的行才能在结果集中出现 关键词:INNER JOIN 格式:SELECT 列名表 FROM 表名1 [INNER] JOIN 表名2 ON或WHERE 条件表 阅读全文

posted @ 2016-04-22 20:16 Alex0111 阅读(823) 评论(0) 推荐(0)

adb的配置
摘要:http://jingyan.baidu.com/article/2fb0ba405e815f00f2ec5f9e.html 1. 用快捷键Ctrl + Alt + T 打开终端命令工具,电脑不要插入连接android设备,在终端中输入并执行lsusb命令,来查看现在系统的usb设备 2.插入连接a 阅读全文

posted @ 2016-04-21 10:46 Alex0111 阅读(178) 评论(0) 推荐(0)

342. Power of Four(One-line)
摘要:342. Power of Four Total Accepted: 707 Total Submissions: 2005 Difficulty: Easy Given an integer (signed 32 bits), write a function to check whether i 阅读全文

posted @ 2016-04-18 12:24 Alex0111 阅读(259) 评论(0) 推荐(0)

mysql的启动,停止与重启
摘要:启动mysql:方式一:sudo /etc/init.d/mysql start 方式二:sudo start mysql方式三:sudo service mysql start停止mysql:方式一:sudo /etc/init.d/mysql stop 方式二:sudo stop mysql方式 阅读全文

posted @ 2016-04-15 17:46 Alex0111 阅读(217) 评论(0) 推荐(0)

PHP学习笔记之interface关键字
摘要:interface用于定义接口 接口里边的方法不需要有方法的实现 implements用于表示类实现某个接口 实现了某个接口之后,必须提供接口中定义的方法的具体实现。 可以用instanceof关键字来判断某个对象是否实现了某个接口。 可以用extends让接口继承接口,当类实现接口时,必须实现接口 阅读全文

posted @ 2016-04-15 12:51 Alex0111 阅读(239) 评论(0) 推荐(0)

PHP学习笔记之析构函数以及static,self,parent关键字
摘要:引用 $jordan1 = &$jordan; 当jordan1 = null; //此时会直接调用析构函数 而当无&时,就需要等到所有的引用都为null时,才调用析构函数析构 乔丹这个对象; static 变量的赋值的时候的写法: /*1.静态属性用于保存类的公有数据 *2.静态方法只能访问静态属 阅读全文

posted @ 2016-04-15 11:48 Alex0111 阅读(208) 评论(0) 推荐(0)

每天一个linux命令(1):ln 命令
摘要:每天一个linux命令(35):ln 命令 ln 是linux中又一个非常重要命令,它的功能是为某一个文件在另外一个位置建立一个同步的链接.当我们需要在不同的目录,用到相同的文件时,我们不需要在 每一个需要的目录下都放一个必须相同的文件,我们只要在某个固定的目录,放上该文件,然后在 其它的目录下用l 阅读全文

posted @ 2016-04-14 13:37 Alex0111 阅读(231) 评论(0) 推荐(0)

Ubuntu + apache + Mysql +php
摘要:发生了乱码问题: 打开apache配置文件: sudo gedit /etc/apache2/apache2.conf,在最后面加上:AddDefaultCharset UTF-8,如果还乱码,再将UTF-8改用gb2312。 重启Apache:sudo /etc/init.d/apache2 re 阅读全文

posted @ 2016-04-14 10:57 Alex0111 阅读(167) 评论(0) 推荐(0)

238. Product of Array Except Self(对O(n)和递归又有了新的理解)
摘要:238. Product of Array Except Self Total Accepted: 41565 Total Submissions: 97898 Difficulty: Medium Given an array of n integers where n > 1, nums, re 阅读全文

posted @ 2016-04-13 10:21 Alex0111 阅读(223) 评论(0) 推荐(0)

8. String to Integer (atoi)
摘要:8. String to Integer (atoi) Total Accepted: 97070 Total Submissions: 721266 Difficulty: Easy Implement atoi to convert a string to an integer. Hint: C 阅读全文

posted @ 2016-04-12 15:47 Alex0111 阅读(249) 评论(0) 推荐(0)

c 类型转换
摘要:double ←── float 高 ↑ long ↑ unsigned ↑ int ←── char,short 低 图中横向箭头表示必须的转换,如两个float型数参加运算,虽然它们类型相同,但仍要先转成double型再进行运算,结果亦为double型。 纵向箭头表示当运算符两边的运算数为不同类 阅读全文

posted @ 2016-04-12 14:33 Alex0111 阅读(149) 评论(0) 推荐(0)

100. Same Tree
摘要:100. Same Tree Total Accepted: 122794 Total Submissions: 284606 Difficulty: Easy Given two binary trees, write a function to check if they are equal o 阅读全文

posted @ 2016-04-12 10:37 Alex0111 阅读(165) 评论(0) 推荐(0)

师兄评论网址用
摘要:0.0 阅读全文

posted @ 2016-04-11 18:11 Alex0111 阅读(223) 评论(7) 推荐(0)

260. Single Number III
摘要:260. Single Number III Total Accepted: 30927 Total Submissions: 71149 Difficulty: Medium Given an array of numbers nums, in which exactly two elements 阅读全文

posted @ 2016-04-11 13:32 Alex0111 阅读(116) 评论(0) 推荐(0)

stardict词库
摘要:http://download.huzheng.org/zh_CN/ sudo tar -jxvf * -C /usr/share/stardict/dic 阅读全文

posted @ 2016-04-10 14:25 Alex0111 阅读(411) 评论(1) 推荐(0)

137. Single Number II
摘要:137. Single Number II Total Accepted: 80477 Total Submissions: 214984 Difficulty: Medium Given an array of integers, every element appears three times 阅读全文

posted @ 2016-04-10 12:32 Alex0111 阅读(319) 评论(0) 推荐(0)

237. Delete Node in a Linked List
摘要:237. Delete Node in a Linked List Total Accepted: 74501 Total Submissions: 170753 Difficulty: Easy Write a function to delete a node (except the tail) 阅读全文

posted @ 2016-04-10 12:08 Alex0111 阅读(199) 评论(0) 推荐(0)

283. Move Zeroes
摘要:283. Move Zeroes Total Accepted: 71969 Total Submissions: 163725 Difficulty: Easy Given an array nums, write a function to move all 0's to the end of 阅读全文

posted @ 2016-04-10 11:46 Alex0111 阅读(173) 评论(0) 推荐(0)

104. Maximum Depth of Binary Tree
摘要:104. Maximum Depth of Binary Tree Total Accepted: 136537 Total Submissions: 286367 Difficulty: Easy Given a binary tree, find its maximum depth. The m 阅读全文

posted @ 2016-04-10 11:31 Alex0111 阅读(160) 评论(0) 推荐(0)

258. Add Digits
摘要:258. Add Digits Total Accepted: 85971 Total Submissions: 177841 Difficulty: Easy Given a non-negative integer num, repeatedly add all its digits until 阅读全文

posted @ 2016-04-10 11:20 Alex0111 阅读(138) 评论(0) 推荐(0)

136. Single Number
摘要:136. Single Number Total Accepted: 123186 Total Submissions: 249218 Difficulty: Medium Given an array of integers, every element appears twice except 阅读全文

posted @ 2016-04-10 11:12 Alex0111 阅读(204) 评论(0) 推荐(0)

PANIC: HOME is defined but could not find Nexus_4_API_22.ini file in $HOME/.android/avd (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd)
摘要:sudo cp /root/.android/avd/*.ini $Home/.android/avd/ sudo cp -r /root/.android/avd/*.avd $Home/.android/avd/ 阅读全文

posted @ 2016-04-09 14:31 Alex0111 阅读(2662) 评论(0) 推荐(0)

su的使用与退出
摘要:偶尔用回到ubuntu系统,想切换到su,总是显示不成功,也许是初次使用,即需要设定一下: 使用sudo $:sudo passwd 系统提示输入密码,即安装时的用户密码,然后,系统提示输入两次新密码,输入完毕后, $:su 即可进入su,具备了相应的权限了 exit退出当前身份 阅读全文

posted @ 2016-04-09 13:38 Alex0111 阅读(3250) 评论(0) 推荐(0)

338. Counting Bits
摘要:Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r 阅读全文

posted @ 2016-04-08 15:55 Alex0111 阅读(173) 评论(0) 推荐(0)

c语言学习笔记
摘要:char ,short在进行计算的时候,会自动转成int型。 另外,sizeof()返回的是无符号数。 阅读全文

posted @ 2016-04-08 15:14 Alex0111 阅读(195) 评论(0) 推荐(0)

导航