- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode修炼之路(Easy系列) --ReverseInteger
package com.yu.sun.leetcode.palindrome; /** * Reverse digits of an integer. * Example1: x = 123, return 321 * Example2: x = -123, return -321 *Note: The input is assumed to be a 32-bit signed
2017-02-26 12:34:53 285
翻译 Leetcode修炼之路(Easy系列)
题目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same
2017-02-22 23:38:15 287
原创 LeetCode修炼之路(Easy系列)
LeetCode修炼之路(Easy系列) 最近一系列打击(自尊心的挫折),深刻感觉到自己的算法很烂,于是下决心刷一些算法题,由于算法菜鸟,从easy开始,步入我的leetcode修炼之路,希望有志同道合的朋友能跟我一起,互相鼓励互相学习。第一题:Determine whether an integer is a palindrome. 意思就是判断一个整数是否为 回文数 代码代码中都有详细的注释,
2017-02-21 22:41:03 292
原创 ssh使用bash实现免密码登录
SSH免密码登录1 打开一个文件,如叫pf 2 写入下面内容,把yu.sun 和 * 换成自己名字和密码。 3 chmod 740 pf 4 ./pf 脚本如下,例如:#!/usr/bin/expect -f #auto ssh login set timeout 30 spawn ssh yu.sun@127.0.0.1 expect "password:" send "***\r" in
2016-08-23 14:52:53 467
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人