码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
415. Add Strings
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The length of both num1 and num2 is < 5100 ...
分类:其他好文   时间:2020-06-06 11:10:45    阅读次数:57
个人记录-LeetCode 77. Combinations
问题:Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example,If n = 4 and k = 2, a solution is: [ [2,4], [3, ...
分类:其他好文   时间:2020-06-06 01:16:22    阅读次数:93
leetcode 1314. Matrix Block Sum
Given a m * n matrix mat and an integer K, return a matrix answer where each answer[i][j] is the sum of all elements mat[r][c] for i - K <= r <= i + K ...
分类:其他好文   时间:2020-06-04 23:16:41    阅读次数:110
450. Delete Node in a BST
Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th ...
分类:其他好文   时间:2020-06-04 11:56:26    阅读次数:48
【leetcode】1448. Count Good Nodes in Binary Tree
题目如下: Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Retur ...
分类:其他好文   时间:2020-06-04 10:33:57    阅读次数:77
leetcode 525. Contiguous Array
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [0,1] Output: 2 Explanation: [0 ...
分类:其他好文   时间:2020-06-04 01:36:55    阅读次数:59
【leetcode】1433. Check If a String Can Break Another String
题目如下: Given two strings: s1 and s2 with the same size, check if some permutation of string s1 can break some permutation of string s2 or vice-versa (i ...
分类:其他好文   时间:2020-06-03 23:41:15    阅读次数:108
【leetcode】1431. Kids With the Greatest Number of Candies
题目如下: Given the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has. For each kid check ...
分类:其他好文   时间:2020-06-03 23:40:35    阅读次数:99
【leetcode】1432. Max Difference You Can Get From Changing an Integer
题目如下: You are given an integer num. You will apply the following steps exactly two times: Pick a digit x (0 <= x <= 9). Pick another digit y (0 <= y < ...
分类:其他好文   时间:2020-06-03 23:33:43    阅读次数:70
【leetcode】1436. Destination City
题目如下: You are given the array paths, where paths[i] = [cityAi, cityBi] means there exists a direct path going from cityAi to cityBi. Return the destin ...
分类:其他好文   时间:2020-06-03 23:29:25    阅读次数:76
24278条   上一页 1 ... 33 34 35 36 37 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!