ObjectID :Documents 自生成的 _id # 自增ID 全世界唯一的计数ID ?String: 字符串,必须是utf-8 ?Boolean:布尔值,true 或者false (这里有坑哦~在我们大Python中 True False 首字母大写) ?Integer:整数 (Int32 ...
分类:
数据库 时间:
2020-06-03 00:38:44
阅读次数:
123
1. import java.util.Arrays; import java.util.Scanner; public class arrays { public static void main(String[] args){ Scanner sc=new Scanner(System.in); ...
分类:
其他好文 时间:
2020-06-01 20:44:25
阅读次数:
56
第一章、phoenix入门简介 1. Phoenix定义 Phoenix最早是saleforce的一个开源项目,后来成为Apache基金的顶级项目。 Phoenix是构建在HBase上的一个SQL层,能让我们用标准的JDBC APIs而不是HBase客户端APIs来创建表,插入数据和对HBase数据 ...
分类:
其他好文 时间:
2020-06-01 18:05:21
阅读次数:
103
题目如下: 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
题目描述 leetcode - 1:https://leetcode-cn.com/problems/two-sum/ 解题关键 hashmap的使用 碎碎念 题目比较简单,暴力过很容易,不过借助hash可以降低时间复杂度,但是增加了空间的消耗。学习了hashmap的使用 key:value 定义 ...
分类:
其他好文 时间:
2020-06-01 01:06:46
阅读次数:
77
使用了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
Arrays类 概述 此类包含用来操作数组(比如排序和搜索)的各种方法。此类还包含一个允许将数组作为列表来查看的静态工厂。 除非特别注明,否则如果指定数组引用为 null,则此类中的方法都会抛出 NullPointerException。 此类的方法都是静态方法,通过类名直接调用。 静态方法 方法摘 ...
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
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
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2020-05-31 12:43:12
阅读次数:
52