
数据结构
文章平均质量分 89
hooha
这个作者很懒,什么都没留下…
展开
-
Add Two Numbers
Add Two NumbersYou 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原创 2012-08-14 15:33:33 · 742 阅读 · 0 评论 -
Anagrams
AnagramsGiven an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.什么是anagrams?/** 整理的提交代码 * 处理复杂度为O(n),n是字符串个数,但是其中有排序等步骤没有固原创 2012-08-14 19:24:10 · 936 阅读 · 0 评论 -
Climbing Stairs
Climbing StairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?/** 整理的原创 2012-08-14 20:50:19 · 677 阅读 · 0 评论