码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
CF 55D
Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by ...
分类:其他好文   时间:2019-02-03 18:25:29    阅读次数:164
25. Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:其他好文   时间:2019-02-02 10:16:26    阅读次数:160
216. Combination Sum III
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:其他好文   时间:2019-02-01 23:27:38    阅读次数:269
最大子段和
从cube 到square 到O(n) 这是人类思维闪闪发光的时刻!!!!!!! 给一个 数列 negative positive zero都有 求一段连续的,最大子段和 多么!clever!多么!wise! 不是!我想的! ...
分类:其他好文   时间:2019-01-31 18:19:29    阅读次数:133
LeetCode-59-Spiral Matrix II
算法描述: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: 解题思路:模拟,注意边界。 ...
分类:其他好文   时间:2019-01-30 13:11:51    阅读次数:107
19.1.30 [LeetCode 24] Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:其他好文   时间:2019-01-30 11:15:50    阅读次数:142
Salem and Sticks-萨鲁曼的棍子 CodeForce#1105A 暴力
题目链接:Salem and Sticks 题目原文 Salem gave you 𝑛n sticks with integer positive lengths 𝑎1,𝑎2,…,𝑎𝑛a1,a2,…,an. For every stick, you can change its lengt ...
分类:其他好文   时间:2019-01-27 21:33:58    阅读次数:264
1035 Password (20 分)
1035 Password (20 分) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some ...
分类:其他好文   时间:2019-01-27 19:14:03    阅读次数:149
PTA-1020——Tree Traversals
题目: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed t ...
分类:其他好文   时间:2019-01-27 19:03:00    阅读次数:168
#Leetcode# 59. Spiral Matrix II
https://leetcode.com/problems/spiral-matrix-ii/ Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order ...
分类:其他好文   时间:2019-01-27 16:39:33    阅读次数:159
2430条   上一页 1 ... 36 37 38 39 40 ... 243 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!