码迷,mamicode.com
首页 >  
搜索关键字:example    ( 17798个结果)
LeetCode 673. Number of Longest Increasing Subsequence 最长递增子序列的个数 (C++/Java)
题目: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Input: [1,3,5,4,7] Output: 2 Explanation: The t ...
分类:编程语言   时间:2020-01-17 19:04:48    阅读次数:77
3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:其他好文   时间:2020-01-17 15:08:09    阅读次数:93
MySQL增强半同步的搭建实验,和一些参数的个人理解
环境信息 role ip port hostname master 192.168.188.101 4306 mysqlvm1 slave 192.168.188.201 4306 mysqlvm1-1 5306 6306 7306 MySQL版本 5.7.26 前置条件 已配置好主从复制。 配置增 ...
分类:数据库   时间:2020-01-17 11:51:49    阅读次数:108
【leetcode】1320. Minimum Distance to Type a Word Using Two Fingers
题目如下: You have a keyboard layout as shown above in the XY plane, where each English uppercase letter is located at some coordinate, for example, the l ...
分类:其他好文   时间:2020-01-17 11:45:26    阅读次数:67
LeetCode 1055. Shortest Way to Form String
原题链接在这里:https://leetcode.com/problems/shortest-way-to-form-string/ 题目: From any string, we can form a subsequence of that string by deleting some numb ...
分类:其他好文   时间:2020-01-17 10:01:32    阅读次数:91
python之logging模块基本用法
logging是python标准库中的模块,用于给程序添加日志,借此方便我们回溯程序的执行过程。 以下面代码为例,介绍logging模块的基本用法: import logging logging.basicConfig(filename="example.log", filemode="a", fo ...
分类:编程语言   时间:2020-01-17 00:03:23    阅读次数:96
rdd简单操作
1.原始数据 Key value Transformations(example: ((1, 2), (3, 4), (3, 6))) 2. flatMap测试示例 执行结果: 3.distinct、reducebykey、groupbykey 4.combineByKey(create Combi ...
分类:其他好文   时间:2020-01-16 19:01:28    阅读次数:97
Mybatis分页遇到的问题(分页total)
* Mybatis - 通用分页拦截器<br/>* 项目地址 : http://git.oschina.net/free/Mybatis_PageHelper 一、分页total拷贝 PageInfo<TShopOrderEntity> selectByExample = new ArrayList ...
分类:其他好文   时间:2020-01-16 18:55:03    阅读次数:153
[LeetCode] 9. Palindrome Number
回文数。题意是判断一个数字是否是回文数。这个题跟第7题非常类似,几乎是一样的做法。例子, Example 1: Input: 121 Output: true Example 2: Input: -121 Output: false Explanation: From left to right, ...
分类:其他好文   时间:2020-01-16 14:55:14    阅读次数:89
1304. Find N Unique Integers Sum up to Zero
Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: Input: n = 5 Output: [-7,-1,1,3,4] Explanatio ...
分类:其他好文   时间:2020-01-16 14:19:16    阅读次数:90
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!