摘要:
原题 Given an integer array with even length, where different numbers in this array represent different kinds of candies. Each number means one candy of 阅读全文
摘要:
原题 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 阅读全文
摘要:
原题 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 阅读全文
摘要:
最近回顾了一下排序算法,发现有些算法还是很绕的,重新梳理一遍,总结如下 很多算法已经忘了,还能流利的写出来的就只有冒泡和选择了,其他排序都是先回顾了一下算法,然后才边调试边写的 其中的基数排序。。感觉很少用,暂时没有梳理,后面再补充 插入排序 分为直接插入和希尔排序,希尔其实就是插入排序的增量版 直 阅读全文
摘要:
原题 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 阅读全文