摘要:
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possib 阅读全文
摘要:
Deap Learning(Ng) 学习笔记 author: 相忠良(Zhong Liang Xiang) start from: Sep. 8st, 2017 1 深度学习概论 打字太麻烦了,索性在吴老师的 text note 上直接标注,写出自己的总结和心得. 每一节,我都会用数字标出核心内容, 阅读全文
摘要:
Given a string s consists of upper/lower case alphabets and empty space characters , return the length of last word in the string. If the last word do 阅读全文
摘要:
知道啥是 gray code 就是收获了. 下面介绍了 gray code 发明的 motivation, 了解动机后就知道啥是 gray code 了. https://zh.wikipedia.org/wiki/格雷码 阅读全文
摘要:
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文
摘要:
Given a collection of integers that might contain duplicates, nums , return all possible subsets. Note: The solution set must not contain duplicate su 阅读全文
摘要:
1. 声明一个 的二维数组: 2. 这么写结果不对: 我晕! 3. 不能妄图写成这样: 有点边迭代,边修改数组的意思. 4. push_back() 和 back() 的区别: coll.push_back()是把一个元素,放入这个容器的末尾,相当于末尾添加一个元素; coll.back()是获取最 阅读全文
摘要:
Given a set of distinct integers, nums, return all possible subsets. Note: The solution set must not contain duplicate subsets. For example, If , a so 阅读全文
摘要:
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step .) You have 阅读全文
摘要:
Given an m x n grid filled with nonnegative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文