码迷,mamicode.com
首页 >  
搜索关键字:hg up    ( 8017个结果
LeetCode | No.1 两数之和
题目描述: 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 h ...
分类:其他好文   时间:2020-01-31 12:38:32    阅读次数:93
Max Consecutive Ones III
Given an array A of 0s and 1s, we may change up to K values from 0 to 1. Return the length of the longest (contiguous) subarray that contains only 1s. ...
分类:其他好文   时间:2020-01-31 00:59:06    阅读次数:67
算法复习:手推快排
leedcode 215. 数组中的第K个最大元素 快排每次寻找都会确定一个元素的真实位置 快排的思想: 先定第一个位置是坑,取出第一个位置的值作为最终要确定位置的值,设置up指针和down指针 由于一开始坑的位置和up重合,直接判断坑的值和down的值大小,此时坑>down需要换坑位置,交换以后d ...
分类:编程语言   时间:2020-01-29 23:21:46    阅读次数:74
挑战程序设计竞赛2.3习题:Making the Grade POJ - 3666
A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. His cows do not mind climbing up or down a si ...
分类:其他好文   时间:2020-01-29 15:43:18    阅读次数:94
80 remove duplicates from sorted array 2
| 分类 leetcode | Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sorted array nums = [1,1,1,2,2,3],You... ...
分类:其他好文   时间:2020-01-29 12:53:10    阅读次数:91
锐捷交换机18010-X端口假死现象
一次上架锐捷交换机,由于ODF光衰不稳定,导致交换机端口down,排查很多发现以下故障: 重置18010-X端口发现提示一下命令: Port in violation! Use 'errdisable recovery' command to up the port! gz-sprine1#show ...
分类:其他好文   时间:2020-01-29 00:55:08    阅读次数:262
POJ1835 宇航员 模拟
一道模拟题:http://poj.org/problem?id=1835 back、forward、up、down都很好搞,而left和right困扰了我很久,最后我直接打表,将所有情况的left和right都搞出来 代码如下: #include <iostream> #include <cstdi ...
分类:其他好文   时间:2020-01-28 09:30:00    阅读次数:78
leetcode 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 ha ...
分类:其他好文   时间:2020-01-27 19:08:41    阅读次数:65
1008 Elevator (20分)
1008 Elevator (20分) 题目: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote ...
分类:其他好文   时间:2020-01-26 23:53:52    阅读次数:68
Lining Up
AtCoder - 2271-Lining Up 原创 fadedsun 最后发布于2017-08-07 10:10:15 阅读数 656 收藏 展开 Problem Statement There are N people, conveniently numbered 1 through N. T ...
分类:其他好文   时间:2020-01-25 20:47:12    阅读次数:81
8017条   上一页 1 ... 41 42 43 44 45 ... 802 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!