You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta ...
分类:
其他好文 时间:
2020-11-26 15:14:07
阅读次数:
5
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i ...
分类:
其他好文 时间:
2020-11-25 12:59:50
阅读次数:
14
Difficulty: Medium Related Topics: String, Backtracking Link: https://leetcode.com/problems/letter-combinations-of-a-phone-number/ Description Given a ...
分类:
移动开发 时间:
2020-11-21 12:45:15
阅读次数:
31
##题面 You are given a sequence of n integers a1 , a2 , ... , an in non-decreasing order. In addition to that, you are given several queries consisting ...
分类:
其他好文 时间:
2020-11-21 12:28:36
阅读次数:
7
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-11-20 12:00:39
阅读次数:
9
##1.1 SAT SAT. Given a CNF formula Φ, does it have a satisfying truth assignment? 可满足性要求的是结果为TRUE! ###1.1.1 3-SAT SAT: where each clause contains exac ...
分类:
其他好文 时间:
2020-11-19 12:40:04
阅读次数:
9
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:
其他好文 时间:
2020-11-13 13:21:44
阅读次数:
33
确切的含义如下。在C++中没有真正的2D矢量,但有std::vector<T>包含std::vector<T>。 如果你声明一个载体std::vector<int> vec(10)你有一个包含10个元素的向量。所以vec.size()是10. 如果你声明std::vector<std::vector ...
分类:
编程语言 时间:
2020-11-11 16:26:59
阅读次数:
10
Difficulty: Medium Related Topics: Hash Table, String Link: https://leetcode.com/problems/group-anagrams/ Description Given an array of strings strs, ...
分类:
其他好文 时间:
2020-11-08 16:43:41
阅读次数:
19
1.confusion_matrix 理论部分见https://www.cnblogs.com/cxq1126/p/12990784.html#_label2 1 from sklearn.metrics import confusion_matrix 2 3 #if y_true.shape=y_ ...
分类:
其他好文 时间:
2020-11-06 02:47:11
阅读次数:
41