码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
1029. Two City Scheduling
There are 2N people a company is planning to interview. The cost of flying the i-th person to city A is costs[i][0], and the cost of flying the i-th p ...
分类:其他好文   时间:2020-06-03 23:34:27    阅读次数:72
【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
phoenix从入门到精通
第一章、phoenix入门简介 1. Phoenix定义 Phoenix最早是saleforce的一个开源项目,后来成为Apache基金的顶级项目。 Phoenix是构建在HBase上的一个SQL层,能让我们用标准的JDBC APIs而不是HBase客户端APIs来创建表,插入数据和对HBase数据 ...
分类:其他好文   时间:2020-06-01 18:05:21    阅读次数:103
【leetcode】1422. Maximum Score After Splitting a String
题目如下: Given a string s of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and r ...
分类:其他好文   时间:2020-06-01 18:02:06    阅读次数:65
1. 两数之和
题目描述 leetcode - 1:https://leetcode-cn.com/problems/two-sum/ 解题关键 hashmap的使用 碎碎念 题目比较简单,暴力过很容易,不过借助hash可以降低时间复杂度,但是增加了空间的消耗。学习了hashmap的使用 key:value 定义 ...
分类:其他好文   时间:2020-06-01 01:06:46    阅读次数:77
LeetCode 29. 两数相除 Divide Two Integers
使用了long。没有解决int的溢出问题。 class Solution { public: int divide(int dividend, int divisor) { //if (dividend == 0) return 0; //if (divisor == 1) return divid ...
分类:其他好文   时间:2020-05-31 18:17:56    阅读次数:101
【POJ3133】Manhattan Wiring (插头dp)
Manhattan Wiring 题意: There is a rectangular area containing n × m cells. Two cells are marked with “2”, and another two with “3”. Some cells are occup ...
分类:其他好文   时间:2020-05-31 16:26:04    阅读次数:66
[LeetCode] 77. Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: Input: n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], ...
分类:其他好文   时间:2020-05-31 13:17:49    阅读次数:57
【LeetCode 力扣】1. Two Sum 两数之和 Java 解法
LeetCode的第一题,英文单词书中 Abandon 一般的存在,让我们来看一下题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. ...
分类:编程语言   时间:2020-05-31 11:10:15    阅读次数:107
二叉搜索树_BST
二叉搜索树 定义 二叉查找树(英语:Binary Search Tree),也称为二叉搜索树、有序二叉树(ordered binary tree)或排序二叉树(sorted binary tree),是指一棵空树或者具有下列性质的二叉树: 若任意节点的左子树不空,则左子树上所有节点的值均小于它的根节 ...
分类:其他好文   时间:2020-05-31 00:56:13    阅读次数:52
17004条   上一页 1 ... 35 36 37 38 39 ... 1701 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!