删除链表中倒数第n个结点 题目:LeetCode19 Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4- ...
分类:
其他好文 时间:
2020-05-29 09:26:32
阅读次数:
50
题目如下: Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of s ...
分类:
其他好文 时间:
2020-05-29 09:26:12
阅读次数:
59
给定一个二维方阵,求,将此方阵顺时针旋转90度。就地交换,不引入额外的存储消耗。 Given input matrix =[ [ 5, 1, 9,11], [ 2, 4, 8,10], [13, 3, 6, 7], [15,14,12,16]], rotate the input matrix in ...
分类:
其他好文 时间:
2020-05-28 13:04:14
阅读次数:
56
Given a perimeter of 60, we can find two right triangles with integral length sides: [(10, 24, 26), (15, 20, 25)]. Complete the following function, wh ...
分类:
其他好文 时间:
2020-05-28 00:59:06
阅读次数:
86
Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Input: A = [4,5,0,-2,- ...
分类:
其他好文 时间:
2020-05-28 00:53:15
阅读次数:
54
package LeetCode_377 /** * 377. Combination Sum IV * https://leetcode.com/problems/combination-sum-iv/description/ * * Given an integer array with all ...
分类:
其他好文 时间:
2020-05-27 18:53:27
阅读次数:
60
Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks coul ...
分类:
其他好文 时间:
2020-05-27 09:16:52
阅读次数:
74
package LeetCode_496 /** * 496. Next Greater Element I * https://leetcode.com/problems/next-greater-element-i/description/ * * You are given two array ...
分类:
其他好文 时间:
2020-05-26 22:09:23
阅读次数:
112
For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2. Input The first line ...
分类:
其他好文 时间:
2020-05-25 19:26:17
阅读次数:
61
看一下题目大意: For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.。 自己翻译一下,不难 ...
分类:
其他好文 时间:
2020-05-25 12:06:37
阅读次数:
75