码迷,mamicode.com
首页 >  
搜索关键字:intersection of two    ( 11974个结果
guava源码阅读——collect.Sets类
1.写在前面 在开始之前,说明一下该篇中重点在union、intersection、difference、filter的实现,对于Sets类中的其他方法如newHashSet、newConcurrentHashSet、newLinkedHashSet等方法等见名知意,不做介绍。 2.阅读内容 col ...
分类:其他好文   时间:2020-08-06 13:14:27    阅读次数:75
HDU6812 Kindergarten Physics(假物理题真思维)
Zhang3 a participant of IPhO (Immortal Physics Olympiad). The $0^\mathrm$ problem in the contest is as follows. There are two balls that weigh \(a\) k ...
分类:其他好文   时间:2020-07-30 22:15:00    阅读次数:110
599. Minimum Index Sum of Two Lists
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings. You need to h ...
分类:其他好文   时间:2020-07-29 15:41:09    阅读次数:86
判断一个整数是否是2的幂
power_two.cpp内容如下: #include <iostream> using namespace std; bool is_power_of_two(unsigned int n) { return (n && !(n & (n-1))); } int main(int argc, ch ...
分类:其他好文   时间:2020-07-29 15:07:26    阅读次数:62
712. Minimum ASCII Delete Sum for Two Strings
Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input: s1 = "sea", s2 = "eat" Output: ...
分类:其他好文   时间:2020-07-28 14:45:21    阅读次数:310
583. Delete Operation for Two Strings
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:其他好文   时间:2020-07-28 14:04:15    阅读次数:77
[LeetCode 1530] Number of Good Leaf Nodes Pairs
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:其他好文   时间:2020-07-27 15:58:17    阅读次数:93
arc092D Two Sequences
题意 给你两个长度为 \(n\) 的串 \(a,b\) 求 \(a,b\) 两序列各任取一数相加形成的$n^2$个和的异或和 $1 \le n \le 2 \times 10^5$ $0 \le a_i \le 2^{28}$ 传送门 思路 按位考虑。对于第$i$位,令 \(x=2^i\),所有数对 ...
分类:其他好文   时间:2020-07-26 22:51:31    阅读次数:66
LeetCode617合并二叉树
题目链接 https://leetcode-cn.com/problems/merge-two-binary-trees/ 题解 递归解法 解法见代码注释 // Problem: LeetCode 617 // URL: https://leetcode-cn.com/problems/merge- ...
分类:其他好文   时间:2020-07-26 01:03:49    阅读次数:54
Codeforces #659 A. Common Prefixes
##题面 he length of the longest common prefix of two strings s=s1s2…sn and t=t1t2…tm is defined as the maximum integer k (0≤k≤min(n,m)) such that s1s2…s ...
分类:其他好文   时间:2020-07-26 00:15:56    阅读次数:106
11974条   上一页 1 ... 8 9 10 11 12 ... 1198 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!