- 博客(5)
- 收藏
- 关注
原创 No3.Longest Substring Without Repeating Characters
/* Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3
2015-07-26 22:05:01
269
原创 No2.Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link
2015-07-26 20:27:29
247
原创 No1.Two Sum
/* Two Sum Total Accepted: 114575 Total Submissions: 647786 My Submissions Question Solution Given an array of integers, find two numbers such that they add up to a specific target number. The func
2015-07-26 19:24:31
252
原创 笨笨熊搬家打包篇
笨笨熊搬家打包篇 描述: 森林里的笨笨熊今天可开心啦——他买了新房子,乔迁新喜要搬家了。因此,笨笨熊请了许多好朋友来帮忙搬家,并准备了很多小纸盒用来装需要搬的物品,不过,这些纸盒的容积都是相同的,并且最多只能装两个物品。但是,为了不打扰太多的朋友,笨笨熊想了个“聪明”办法:让每个纸盒使用效率最高(注:只要纸盒容积大于物品的体积之和就认为可以装下;物品体积不会大于纸盒容积),这样需要的纸盒最少
2014-04-30 00:55:00
2057
7
原创 外星人比数的大小
来自星星的都教授除了所有感官比地球人高出七倍,始终容颜不老以外,还拥有一项在地球人看来特别神奇的能力,他会瞬间(0.00000000000000000000001s以内)按照他的规则比较地球人熟悉的两个十进制数字的大小,他比较的规则如下: 1、将要比较的两个数字分别转换成二进制数字; 2、计算两个二进制数字中1的个数,个数多的数字为两者中的大者; 3
2014-04-30 00:45:48
678
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人