https://leetcode cn.com/problems/merge k sorted lists/ 这道题的前置题目是合并两个排序链表 https://leetcode cn.com/problems/merge two sorted lists/ 1. 暴力法 将所有链表合并后排序 时间 ...
分类:
编程语言 时间:
2020-02-04 10:50:02
阅读次数:
56
Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. words[i] + ...
分类:
其他好文 时间:
2020-02-04 10:47:17
阅读次数:
71
Given two arrays, write a function to compute their intersection. Example 1: Input: nums1 = [1,2,2,1], nums2 = [2,2] Output: [2] Example 2: Input: num ...
分类:
其他好文 时间:
2020-02-04 10:34:46
阅读次数:
61
题目内容 Given two non negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example: ...
分类:
其他好文 时间:
2020-02-03 22:31:16
阅读次数:
81
H - Triangle Mr. Frog has n sticks, whose lengths are 1,2, 3??n respectively. Wallice is a bad man, so he does not want Mr. Frog to form a triangle wi ...
题目链接:http://codeforces.com/problemset/problem/1288/C C. Two Arrays time limit per test 1 second memory limit per test 256 megabytes input standard inp ...
分类:
编程语言 时间:
2020-02-03 19:19:44
阅读次数:
85
2020-02-03 17:46:04 问题描述: 问题求解: 非常好的题目,和two thumb其实非常类似,但是还是有个一点区别,就是本题要求最后要到达(n - 1, n - 1),只有到达了(n - 1, n - 1)才算是有效解,two thumb是一定会有解的,所以不用加特别判断。 也是一 ...
分类:
其他好文 时间:
2020-02-03 18:57:05
阅读次数:
50
D. Irreducible Anagrams time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Let's call two s ...
分类:
其他好文 时间:
2020-02-03 12:19:08
阅读次数:
167
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 ex ...
分类:
其他好文 时间:
2020-02-03 12:04:03
阅读次数:
69
89. Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non negative integer n representing ...
分类:
其他好文 时间:
2020-02-03 11:39:42
阅读次数:
59