4. Median of Two Sorted Arrays 题目链接:https://leetcode.com/problems/median-of-two-sorted-arrays/ Description: There are two sorted arrays nums1 and nums ...
分类:
其他好文 时间:
2019-01-05 21:34:39
阅读次数:
259
索引 思路1:基本加法规则 思路2:移花接木法。。。 索引 思路1:基本加法规则 思路2:移花接木法。。。 问题描述:https://leetcode.com/problems/add-two-numbers/ 思路1:基本加法规则 根据小学学的基本加法规则。。。。。我们需要将两个数以最低位为基准对 ...
分类:
Web程序 时间:
2019-01-05 21:29:56
阅读次数:
192
索引 思路1:暴力搜索 思路2:聪明一点的搜索 思路3:利用HashMap巧解 索引 思路1:暴力搜索 思路2:聪明一点的搜索 思路3:利用HashMap巧解 问题描述:https://leetcode.com/problems/two-sum/ 思路1:暴力搜索 一个很自然的想法就是暴力搜索了。根 ...
分类:
Web程序 时间:
2019-01-05 10:47:40
阅读次数:
210
The median maintenance problem is a common programming challenge presented in software engineering job interviews. In this lesson we cover an example ...
分类:
编程语言 时间:
2019-01-04 21:31:55
阅读次数:
161
合并两个有序的链表,问题来源:https://leetcode.com/problems/merge-two-sorted-lists/ 分析:本质是很简单的,归并排序中的一个小节。难点在于链表操作,容易出现失误。很久没碰c++手生的很。 代码如下: ...
分类:
其他好文 时间:
2019-01-04 21:26:41
阅读次数:
186
LeetCode真题_021_Merge Two Sorted Lists ...
分类:
其他好文 时间:
2019-01-04 12:45:54
阅读次数:
182
https://codeforces.com/problemset/problem/813/D DP好难啊....... dp[i][j] = 一条链以i结尾, 另一条链以j结尾的最大值 关键要保证转移时两条链不能相交 ...
分类:
其他好文 时间:
2019-01-04 00:20:15
阅读次数:
153
第一题:题目内容 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 woul ...
分类:
其他好文 时间:
2019-01-03 22:41:15
阅读次数:
179
Given one stack with integers, sort it with two additional stacks (total 3 stacks). After sorting the original stack should contain the sorted integer ...
分类:
其他好文 时间:
2019-01-03 19:42:10
阅读次数:
177
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 代码的主要思路就是一位一位相加。具体代码实现过程如下。 但是关注了一下,评论区大神的 ...
分类:
其他好文 时间:
2019-01-03 12:02:04
阅读次数:
183