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
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
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
算法描述: 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
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 题目原文 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 分) 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
题目: 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
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