码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
PAT 甲级 1108 Finding Average (20分)
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
leetcode 43. Multiply Strings
题目内容 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
6-17 Shortest Path [4] (25分)
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
6-16 Shortest Path [3] (25分)
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
1. Two Sum
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
LeetCode Solution-89
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
1342. Reduce Array Size to The Half
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
LeetCode Solution-86
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
1341. The K Weakest Rows in a Matrix
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
leetcode101 Symmetric Tree
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
24278条   上一页 1 ... 78 79 80 81 82 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!