摘要: 原题 Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of 阅读全文
posted @ 2017-07-19 19:50 l.shane 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order 阅读全文
posted @ 2017-07-19 19:18 l.shane 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Ex 阅读全文
posted @ 2017-07-19 15:46 l.shane 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 最近回顾了一下排序算法,发现有些算法还是很绕的,重新梳理一遍,总结如下 很多算法已经忘了,还能流利的写出来的就只有冒泡和选择了,其他排序都是先回顾了一下算法,然后才边调试边写的 其中的基数排序。。感觉很少用,暂时没有梳理,后面再补充 插入排序 分为直接插入和希尔排序,希尔其实就是插入排序的增量版 直 阅读全文
posted @ 2017-07-19 08:06 l.shane 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 原题 Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list w 阅读全文
posted @ 2017-07-19 07:48 l.shane 阅读(164) 评论(0) 推荐(0) 编辑