题目 题目链接:https://codeforces.com/problemset/problem/468/B 给出 \(n\) 个各不相同的数字,将它们分别放入 \(A\) 和 \(B\) 两个集合中,使它们满足: 若数字 \(x\) 在集合 \(A\) 中,那么数字 \(a-x\) 也在集合 \ ...
分类:
其他好文 时间:
2020-10-30 12:08:18
阅读次数:
14
本文来自作者 "臣不贰" 投稿。 CSDN:https://blog.csdn.net/NOT_TWO_CHEN/article/details/109230267 简书:https://www.jianshu.com/p/a24a9ff323c9 一. 开发准备 1. 开发工具 IntelliJ ...
分类:
编程语言 时间:
2020-10-29 09:54:54
阅读次数:
23
1)查看各数据库记录数,容量大小 SELECT table_schema AS '数据库', sum(table_rows) AS '记录数', sum( TRUNCATE (data_length / 1024 / 1024, 2) ) AS '数据容量(MB)', sum( TRUNCATE ( ...
分类:
数据库 时间:
2020-10-29 09:45:44
阅读次数:
27
前情提要 mysql中的模糊检索方法,总结了有以下几种,下面我们来简单操作一下 -- 创建表 mysql> create table wuxia -> (id int(10) primary key, -> name char(10) -> ); Query OK, 0 rows affected, ...
分类:
数据库 时间:
2020-10-27 11:46:12
阅读次数:
32
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-10-27 11:41:41
阅读次数:
23
你准备参加一场远足活动。给你一个二维 rows x columns 的地图 heights ,其中 heights[row][col] 表示格子 (row, col) 的高度。一开始你在最左上角的格子 (0, 0) ,且你希望去最右下角的格子 (rows-1, columns-1) (注意下标从 0 ...
分类:
其他好文 时间:
2020-10-26 11:13:12
阅读次数:
19
1.算法初步 贪心算法 求解最优化问题的方法,由局部最优的策略使全局结果达到最优 适用于满足最优子结构的问题,即一个问题的最优解可以由的子问题的最优解有效地构造出来 two pointers 利用问题本身与序列地特性,使用两个下标i、j对序列进行扫描,以较低地复杂度解决问题 打表 在程序中一次性计算 ...
分类:
编程语言 时间:
2020-10-18 16:44:54
阅读次数:
27
连接字符串 连接是一个很花哨的编程词,意思是“连接在一起”。在JavaScript中连接字符串使用加号(+)操作符,我们也用它来将数字加在一起,但是在这种情况下,它做了一些不同的事情。让我们在控制台中尝试一个例子。 let one = 'Hello, '; let two = 'how are yo ...
分类:
其他好文 时间:
2020-10-18 16:33:27
阅读次数:
17
首先,$listeners是什么? // Parent <template> ... <child v-on:event-one="methodOne" v-on:event-two="methodTwo" /> ... </template> 那么你在使用Child时,传入的所有v-on事件都可以 ...
分类:
其他好文 时间:
2020-10-18 16:15:48
阅读次数:
16
Difficulty: Easy Related Topics: Linked List Link: https://leetcode.com/problems/merge-two-sorted-lists/ Description Merge two sorted linked lists and ...
分类:
其他好文 时间:
2020-10-12 20:06:05
阅读次数:
22