1108 Finding Average (20分) The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated ...
分类:
其他好文 时间:
2020-02-04 00:16:37
阅读次数:
66
题目内容 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
Write a program to find the weighted shortest distances from any vertex to a given source vertex in a digraph. If there is more than one minimum path ...
分类:
其他好文 时间:
2020-02-03 15:53:01
阅读次数:
83
Write a program to not only find the weighted shortest distances, but also count the number of different minimum paths from any vertex to a given sour ...
分类:
其他好文 时间:
2020-02-03 15:52:30
阅读次数:
88
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
Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum size of the set ...
分类:
其他好文 时间:
2020-02-03 09:59:54
阅读次数:
66
86. Partition List Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You s ...
分类:
其他好文 时间:
2020-02-03 09:43:53
阅读次数:
69
Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matrix or ...
分类:
其他好文 时间:
2020-02-03 09:40:07
阅读次数:
71
1 """ 2 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 3 For example, this binary tree [1,2,2,3,4,4,3] ...
分类:
其他好文 时间:
2020-02-02 23:54:27
阅读次数:
111