码迷,mamicode.com
首页 >  
搜索关键字:combination sum ii    ( 27716个结果
路径总和
路径总和 给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径,这条路径上所有节点值相加等于目标和。 说明: 叶子节点是指没有子节点的节点。 示例 给定如下二叉树,以及目标和sum = 22,返回true,因为存在目标和为22的根节点到叶子节点的路径5->4->11->2。 5 / ...
分类:其他好文   时间:2020-07-10 21:05:11    阅读次数:56
leetcode 64 add binary
题目 Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Exampl ...
分类:其他好文   时间:2020-07-10 20:58:33    阅读次数:56
Pytorch之数据处理
使用TensorDataset和DataLoader来简化 from torch.utils.data import TensorDataset from torch.utils.data import DataLoader ? train_ds = TensorDataset(x_train, y ...
分类:其他好文   时间:2020-07-10 19:23:20    阅读次数:71
LeetCode刷题
LC148 two-sum 题意:数组中找出两个加起来等于目标值的数 题解:unordered存值对应下标,注意相同数的特判 LC147 median-of-two-sorted-arrays 题意:两个有序数组中位数 题解:Kth(A,m,B,n,k),若m>n交换,pa=min(k/2,m),p ...
分类:其他好文   时间:2020-07-10 15:23:31    阅读次数:60
想到的无法解决的点子
\[ g_i=\sum_{j=1}^{i-1}f_j*g_{i-j} \] 得到$g_i$后,以某种方式$O(1)$得到$f_i$,其余均无法得到$f_i$,有无低于$o(n^2)$的做法 ...
分类:其他好文   时间:2020-07-10 12:56:18    阅读次数:52
面试连环炮系列(二十?四):为什么选择RocketMQ
为什么选择RocketMQ,而不是其他MQ 性能:阿里支撑,经受住淘宝,天猫双11重重考验;性能高;可靠性好;可用性高;易扩展。 功能:功能完善,我们需要的功能基本都够满足,如:事务消息,消息重试,死信队列,定时消息等。 易用:跨平台:跨语言,多协议接入(支持HTTP, MQTT, TCP协议,支持 ...
分类:其他好文   时间:2020-07-10 11:42:57    阅读次数:128
[LeetCode] 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 ...
分类:其他好文   时间:2020-07-10 09:59:09    阅读次数:61
680. Valid Palindrome II
package LeetCode_680 /** * 680. Valid Palindrome II * https://leetcode.com/problems/delete-operation-for-two-strings/description/ * * Given two words ...
分类:其他好文   时间:2020-07-10 09:29:42    阅读次数:68
【leetcode_easy_array】1013. Partition Array Into Three Parts With Equal Sum
problem 1013. Partition Array Into Three Parts With Equal Sum 不明白的点: 有可能很多个part,前N个part之和满足sum的1/3或者2/3,然后前N+k个part也能够满足sum的1/3或者2/3,也就是说可能不止一种组合; 而本题 ...
分类:其他好文   时间:2020-07-09 22:15:32    阅读次数:66
MYSQL中遇到的问题以及解决方法(二)排序后筛选
MYSQL中没有row_number()over(partition by order by ),如何排序后进行筛选? 方法一: select OperatorID,sum(cnt) as '总人数',sum(case when Quality=1 then cnt else 0 end ) as ...
分类:数据库   时间:2020-07-09 19:32:17    阅读次数:77
27716条   上一页 1 ... 85 86 87 88 89 ... 2772 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!