码迷,mamicode.com
首页 >  
搜索关键字:divide two integers    ( 17573个结果
Quagga BGP and exabgp: work together for BGP blackhole implementation
Quagga BGP and exabgp: work together for BGP blackhole implementation In our test case we will deploy two machines: 10.0.3.114 for exabgp (it announce ...
分类:其他好文   时间:2020-07-12 12:21:39    阅读次数:70
排序算法
##一、归并排序 该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。 分割: 将数组从中点进行分割,分为左、右两个数组 递归分割左、右数组,直到数组长度小于2 归并: 如果需要合并,那么左右两数组已经有序了。 创建一个临时存储数组temp,比较两数组第一个元素,将较小的 ...
分类:编程语言   时间:2020-07-11 22:55:51    阅读次数:61
LeetCode21
题目链接 https://leetcode-cn.com/problems/merge-two-sorted-lists/description/ 题目分析 两个链表已排序 新链表应该是两个链表拼接起来的,而非new出来的 链表中头结点的val应该是有意义的 题解一:迭代 思路 先new一个无意义的 ...
分类:其他好文   时间:2020-07-11 19:10:40    阅读次数:83
A Bug's Life POJ - 2492
A Bug's Life Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different gend ...
分类:其他好文   时间:2020-07-11 17:33:44    阅读次数:54
Common Substrings POJ - 3415 (后缀数组 + 单调栈)
A substring of a string T is defined as: T(i, k)=TiTi+1...Ti+k-1, 1≤i≤i+k-1≤|T|. Given two strings A, B and one integer K, we define S, a set of tripl ...
分类:编程语言   时间:2020-07-11 13:09:02    阅读次数:71
归并排序
归并排序: 先分治后归并。 edit play_arrow brightness_4 /* Java program for Merge Sort */ class MergeSort { // Merges two subarrays of arr[]. // First subarray is ...
分类:编程语言   时间:2020-07-10 23:51:51    阅读次数:78
LeetCode160
题目链接 https://leetcode-cn.com/problems/intersection-of-two-linked-lists/ 初次读题 初次读题可知 两个指针相同即需要求得的结果 链表长度可能不同 两个链表可能没有交叉点,此时返回NULL 不可修改链表结构 链表中无循环 我第一次读 ...
分类:其他好文   时间:2020-07-10 23:51:38    阅读次数:63
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
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
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
17573条   上一页 1 ... 19 20 21 22 23 ... 1758 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!