题目地址: "https://leetcode cn.com/problems/two sum/" 1.暴力解法 直接双重循环,枚举出所有可能的解,时间复杂度为O(n^2),空间复杂度为O(1) 2.HashTable 第一次循环将数组nums中的每个数都放入map中 第二次循环判断target n ...
分类:
其他好文 时间:
2020-04-17 00:50:56
阅读次数:
61
Problem: A?+?B is a problem used to test one's basic knowledge for competitive programming. Here is yet another boring variation of it. You have two i ...
分类:
其他好文 时间:
2020-04-16 22:50:39
阅读次数:
182
老外里面, 孔乙己也很多,, 居然可以总结出这么多茴香豆的写法. https://www.techiedelight.com/join-two-lists-java/ 3个 4个 2个 ...
分类:
编程语言 时间:
2020-04-16 13:21:19
阅读次数:
733
You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' ...
分类:
其他好文 时间:
2020-04-15 15:17:52
阅读次数:
68
"【简单】1 两数之和 Two Sum" "【中等】2 两数相加 Add Two Num" "【中等】3 无重复字符的最长子串 Longest Substring Without Repeating Characters" "【困难】4 寻找两个有序数组的中位数 Median of Two Sort ...
分类:
其他好文 时间:
2020-04-15 15:15:11
阅读次数:
70
Problem Description Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the in ...
分类:
其他好文 时间:
2020-04-15 13:51:02
阅读次数:
82
Given two arrays of integers nums and index. Your task is to create target array under the following rules: Initially target array is empty. From left ...
分类:
其他好文 时间:
2020-04-15 09:17:23
阅读次数:
60
Given two binary trees original and cloned and given a reference to a node target in the original tree. The cloned tree is a copy of the original tree ...
分类:
其他好文 时间:
2020-04-15 09:14:36
阅读次数:
74
"A. Candies and Two Sisters" 签到题,直接输出即可 代码 include define INF 0x3f3f3f3f typedef long long ll; using namespace std; inline void read(int &p) { p=0;int ...
分类:
其他好文 时间:
2020-04-15 00:35:19
阅读次数:
73
5.7 Doorbell Buffer Config commandThe Doorbell Buffer Config command is used to provide two separate memory buffers that mirror the controller's doorb ...
分类:
其他好文 时间:
2020-04-14 21:05:59
阅读次数:
95