算法
下雨天不打伞。
这个作者很懒,什么都没留下…
展开
-
一天一算--Add Two Numbers
2.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 ...原创 2018-08-14 22:20:54 · 93 阅读 · 0 评论 -
一天一算--二维数组中的查找
3.二维数组中的查找 在一个二维数组中,每一行元素都按照从左到右递增的顺序排序,每一列元素都按照从上到下递增的顺序排序。实现一个查找功能的函数,函数的输入为二维数组和一个整数,判断数组中是否含有该整数。 example: | 1 | 3 | 4 | 6 | | 2 | 4 | 5 | 8 | | 3 | 6 | 7 | 10| | 5 | 8 | 9 | 12| 思路 ...原创 2018-08-15 21:03:05 · 91 阅读 · 0 评论 -
一天一算--TowSum
1.Tow Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use ...原创 2018-08-13 21:51:39 · 168 阅读 · 0 评论