- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 苏宁2016研发工程师编程题
1.判断一个链表是否有环(只能使用两个指针)。 2.给定整数n,求n!阶乘末尾0的个数。 3.求一个字符串的最长子字符串,最长子字符串定义为其中没有重复的字符。 4.n个人有m对好友,求其中的朋友圈的数目。 5.用户信息表包含用户名,地址,商品销售信息表包含商品名,数量,价格,出售时间。 要求可以查到每个用户购买的商品信息。 建立两个表。 查询用户“张三“的信息,购买的全部商品,最近
2015-09-14 16:02:44 606
原创 Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ]
2015-09-06 09:55:42 384
原创 Remove Linked List Elements
Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5 等于给定的val,就跳过。 public class
2015-09-04 09:32:02 358
原创 linux命令
1. cut 在一行信息中取出某部分我们想要的 cut –d ‘分隔字符’ –f fileds cut –c 字符范围 范例一:将path变量取出,找出第三和第五个路径 echo $path | cut –d ‘:’ –f 3,5 范例二:将export输出的信息取得第12字符以后的所有字符串 export | cut –c 12-
2015-09-02 21:49:13 379
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人