码迷,mamicode.com
首页 >  
搜索关键字:discuss    ( 1567个结果
239. Sliding Window Maximum
一、题目 1、审题 2、分析 给出一个整形数组,一个窗口大小 k,此窗口每次包含 k 个连续元素,依次向后移动,将每次窗口中的最大元素进行记录。 二、解答 1、思路 方法一、 采用双端队列 Deque 存储每次窗口中最大元素的下标 i,且队列中存储的下标是依次增大的。 ①、循环判断队列中元素值 < ...
分类:Windows程序   时间:2018-11-11 17:19:02    阅读次数:174
字符统计2
字符统计2 Time Limit: 1000 ms Memory Limit: 65536 KiB Submit Statistic Discuss Problem Description 输入英文句子,输出该句子中除了空格外出现次数最多的字符及其出现的次数。 输入英文句子,输出该句子中除了空格外出 ...
分类:其他好文   时间:2018-11-09 17:13:51    阅读次数:139
872. Leaf-Similar Trees
https://leetcode.com/problems/leaf-similar-trees/discuss/152358/Simple-6-lines-Java-StringBuilder-+-traverse-with-explanation Consider all the leaves ... ...
分类:其他好文   时间:2018-11-08 18:30:29    阅读次数:148
529. Minesweeper
Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. 'M' represents an unrevealed min ...
分类:其他好文   时间:2018-11-08 18:30:03    阅读次数:114
853. Car Fleet
https://leetcode.com/problems/car-fleet/solution/ https://leetcode.com/problems/car-fleet/discuss/139999/Easy-understanding-JAVA-TreeMap-Solution-with... ...
分类:其他好文   时间:2018-11-08 18:20:58    阅读次数:198
373 Find K Pairs with Smallest Sums
https://leetcode.com/problems/find-k-pairs-with-smallest-sums/discuss/84551/simple-Java-O(KlogK)-solution-with-explanation public class Solution { pub... ...
分类:其他好文   时间:2018-11-08 18:15:10    阅读次数:135
非科班双非本科投的337家Java后台(励志)
考试结束,班级平均分只拿到了年级第二,班主任于是问道:大家都知道世界第一高峰珠穆朗玛峰,有人知道世界第二高峰是什么吗?正当班主任要继续发话,只听到角落默默想起来一个声音:”乔戈里峰” 前言 文章出自https://www.nowcoder.com/discuss/133333这是公众号的一位粉丝的秋 ...
分类:编程语言   时间:2018-11-07 23:03:46    阅读次数:204
294. Flip Game II
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu... ...
分类:其他好文   时间:2018-11-06 13:39:27    阅读次数:153
310. Minimum Height Trees
https://leetcode.com/problems/minimum-height-trees/discuss/76055/Share-some-thoughts For a undirected graph with tree characteristics, we can choose a... ...
分类:其他好文   时间:2018-11-06 11:09:40    阅读次数:116
1875: [SDOI2009]HH去散步
Time Limit: 20 Sec Memory Limit: 64 MB Submit: 2333 Solved: 1204 "[Submit" ] "[Status" ] "[Discuss" ] Description HH有个一成不变的习惯,喜欢饭后百步走。所谓百步走,就是散步,就是在一定 ...
分类:其他好文   时间:2018-11-01 19:00:31    阅读次数:201
1567条   上一页 1 ... 11 12 13 14 15 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!