一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given an array of integers, every element appears twice except for one. Find that single one....
分类:
其他好文 时间:
2016-07-19 11:04:51
阅读次数:
126
一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Given an array of integers, every element appears three times except for one. Find that single one...
分类:
其他好文 时间:
2016-07-19 11:03:24
阅读次数:
118
int[] x = { 10, 6, 7, 15, 8 }; int[] y = { 20, 9, 15, 2, 7 }; // 差集 var z1 = x.Except(y); foreach (var i in z1) { Console.Write(i + " "); } Console.Wr ...
分类:
编程语言 时间:
2016-07-15 19:57:33
阅读次数:
218
Linuxssh下执行ssh命令远程登录其他机器,总是需要输入密码,如果人工去登录,输入密码那还可以,但是让程序自动化登录远程ssh服务器,并执行命令着就比较麻烦了安装expectcentos安装:yuminstallexpect-y#!/usr/bin/expectsettimeout120spawnscp-r/tmp/file.txtccc@10.10.99.3..
分类:
其他好文 时间:
2016-07-14 19:44:49
阅读次数:
213
1.1错误处理1.1.1try>>>try:...print(‘try...‘)...r=10/0...print(‘result:‘,r)...exceptZeroDivisionErrorase:...print(‘except:‘,e)...finally:...print(‘finally...‘)...print(‘END‘)...try...except:divisionbyzerofinally...END当我们认为某些代码可能会出错时,..
分类:
编程语言 时间:
2016-07-14 07:16:10
阅读次数:
271
一天一道LeetCode
本系列文章已全部上传至我的github,地址:ZeeCoder‘s Github
欢迎大家关注我的新浪微博,我的新浪微博
欢迎转载,转载请注明出处
(一)题目
Write a function to delete a node (except the tail) in a singly linked list, given only access to...
分类:
其他好文 时间:
2016-07-13 16:48:26
阅读次数:
119
Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f ...
分类:
编程语言 时间:
2016-07-13 11:55:46
阅读次数:
144
Friends and Subsequences Friends and Subsequences Mike and !Mike are old childhood rivals, they are opposite in everything they do, except programming ...
分类:
其他好文 时间:
2016-07-13 11:42:57
阅读次数:
212
D - Friends and Subsequences Description Mike and !Mike are old childhood rivals, they are opposite in everything they do, except programming. Today t ...
分类:
其他好文 时间:
2016-07-12 23:03:32
阅读次数:
226
D. Friends and Subsequences D. Friends and Subsequences Mike and !Mike are old childhood rivals, they are opposite in everything they do, except progr ...
分类:
其他好文 时间:
2016-07-09 22:13:46
阅读次数:
177