码迷,mamicode.com
首页 >  
搜索关键字:combination sum ii    ( 27716个结果
leetcode 1283. Find the Smallest Divisor Given a Threshold
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:其他好文   时间:2020-11-13 13:21:44    阅读次数:33
【leetcode】二进制矩阵中的特殊位置
int numSpecial(int** mat, int matSize, int* matColSize){ int i,j,k,n,sum=0; int rows[100]={0}; int cols[100]={0}; for(i=0; i<matSize; i++) { for(j=0; ...
分类:其他好文   时间:2020-11-13 13:09:28    阅读次数:9
2020.10.30--vj个人赛补题
D - D CodeForces - 743A Vladik is a competitive programmer. This year he is going to win the International Olympiad in Informatics. But it is not as e ...
分类:其他好文   时间:2020-11-13 13:07:43    阅读次数:10
trick - 数学技巧
拆幂 \(x^n=x+\sum\limits_{i=1}^{n-1} (x-1)x^i\) 可以在递推式或者代数变形的时候用到这个式子,尤其是可以和二项式定理结合起来 例: noi.ac#286 集合 题解: 本地pdf,不知道咋上传qaq ...
分类:其他好文   时间:2020-11-12 14:16:25    阅读次数:6
LeetCode #55 Jump Game
###题目 Jump Game ###解题方法 这道题可以用贪心算法的思想解决,类似于Jump Game II。 ###代码 class Solution: def canJump(self, nums: List[int]) -> bool: curEnd = 0 curFarthest = 0 ...
分类:其他好文   时间:2020-11-12 13:58:21    阅读次数:5
MySQL查看数据库表容量大小
1.查看所有数据库容量大小 select table_schema as 'smartxs' ,sum(table_rows) as '记录数' ,sum(truncate(data_length/1024/1024, 2)) as '数据容量(MB)' ,sum(truncate(index_le ...
分类:数据库   时间:2020-11-12 13:50:57    阅读次数:57
appium 移动端 自动化测试
使用appnium 操作如下(保证adb在连接真机或者模拟器的情况下) 如图所下 如图所下 desired_caps常用参数: platformName 平台的名称:iOS, Android, or FirefoxOS platformVersion 设备系统版本号 deviceName 设备号 I ...
分类:移动开发   时间:2020-11-11 16:47:27    阅读次数:27
LeetCode 82. 删除排序链表中的重复元素 II
题目连接 82. 删除排序链表中的重复元素 II 题目思路 这个题要求我们把所有重复出现的元素都删除,与前面的题目不一样的是这里不要求保留其中一个。 在看示例的时候发现如果连续出现两个重复元素的话,正常的双指针会出现重复元素。 那么我们要进行判断 当前位置是重复元素 当前位置元素只出现一次 对于第二 ...
分类:编程语言   时间:2020-11-11 16:44:19    阅读次数:15
LeetCode 92. 反转链表 II
题目连接 92. 反转链表 II 题目分析 题目要求我们用一趟扫描完成旋转,我们只需要先把[m,n]这段区间内的链表定位了就容易做了。当我们完成定位后就是普通的三指针反转链表 代码实现 /** * Definition for singly-linked list. * public class L ...
分类:其他好文   时间:2020-11-11 16:43:05    阅读次数:18
b_lc_给定行和列的和求可行矩阵(找行和列的和的最小值填)
给定 rowSum[i] 是二维矩阵中第 i 行元素的和, colSum[j] 是第 j 列元素的和 请找到大小为 rowSum.length x colSum.length 的任意 非负整数 矩阵,且该矩阵满足 rowSum 和 colSum 的要求。 思路 我是这样想的:越先找到越小的值填了的容 ...
分类:其他好文   时间:2020-11-11 16:26:18    阅读次数:8
27716条   上一页 1 ... 47 48 49 50 51 ... 2772 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!