码迷,mamicode.com
首页 >  
搜索关键字:kth largest    ( 1961个结果
PAT Advanced 1094 The Largest Generation (25) [BFS,DFS,树的遍历]
PAT 甲级 Advanced 1094 The Largest Generation (25) [BFS,DFS,树的遍历] ...
分类:其他好文   时间:2020-02-18 11:31:32    阅读次数:82
欧拉计划第8题题解
Largest product in a series The four adjacent digits in the 1000 digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. Find the thirte ...
分类:其他好文   时间:2020-02-17 20:16:02    阅读次数:145
53. Maximum Subarray
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:其他好文   时间:2020-02-17 19:59:09    阅读次数:80
欧拉计划第11题题解
Largest product in a grid In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 ...
分类:其他好文   时间:2020-02-17 19:50:33    阅读次数:116
链表中倒数第k个节点
题目描述 输入一个链表,输出该链表中倒数第k个结点。 1 /* 2 public class ListNode { 3 int val; 4 ListNode next = null; 5 6 ListNode(int val) { 7 this.val = val; 8 } 9 }*/ 10 pu ...
分类:其他好文   时间:2020-02-17 19:34:32    阅读次数:80
欧拉计划第4题题解
Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2 digit numbers is 9009 ...
分类:其他好文   时间:2020-02-17 18:15:39    阅读次数:102
欧拉计划第3题题解
Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? 最大质因数 13195的所有质因数为5 ...
分类:其他好文   时间:2020-02-17 18:06:08    阅读次数:105
LeetCode | 0215. Kth Largest Element in an Array数组中的第K个最大元素【Python】
LeetCode 0215. Kth Largest Element in an Array数组中的第K个最大元素【Medium】【Python】【快排】【堆】 Problem "LeetCode" Find the k th largest element in an unsorted array ...
分类:编程语言   时间:2020-02-14 22:35:12    阅读次数:98
1094 The Largest Generation (25point(s)) Easy only once
基本思想: 层序遍历问题; 关键点: 无; #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include<math.h> #include<algorithm> # ...
分类:其他好文   时间:2020-02-14 14:49:57    阅读次数:52
leetcode53 Maximum Subarray
1 """ 2 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. 3 Exa ...
分类:其他好文   时间:2020-02-12 00:58:45    阅读次数:82
1961条   上一页 1 ... 10 11 12 13 14 ... 197 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!