1.LC 139 word Break BONUS: 将vector数值存储在unordered_set中去重 vector<string> vs; unordered_set<int> us(vs.begin(),vs.end()); vector通过值找元素只能用find(vector.begi ...
分类:
其他好文 时间:
2020-02-25 20:20:18
阅读次数:
42
Gmiansi: polish project dataset method self-work LC148 #include<bits/stdc++.h> using namespace std; struct ListNode { int val; ListNode* next; ListNod ...
分类:
其他好文 时间:
2020-02-25 20:09:40
阅读次数:
51
Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the n-queens' place ...
分类:
其他好文 时间:
2020-02-23 09:44:19
阅读次数:
57
linux命令的语法 命令 可选参数 你要操作的对象 修改linux支持文件的命令 export LC_ALL=zh_CN.UTF-8 #设置linux一个全局的中文变量 增 1.创建一个普通文本文件 语法是 touch 文件名 [root@bogon tmp]# touch music.txt?2 ...
分类:
系统相关 时间:
2020-02-20 23:50:54
阅读次数:
105
Repeatedly remove all adjacent, repeated characters in a given string from left to right. No adjacent characters should be identified in the final str ...
分类:
其他好文 时间:
2020-02-19 13:15:33
阅读次数:
57
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example: I ...
分类:
其他好文 时间:
2020-02-17 12:18:03
阅读次数:
62
3.1、if语句:1、if "lc" == "lc": n2 = input('>>>') if n2 == "确认": print('hello') else: print('world')else: print('error')2、注意:n1 = "lc" 赋值n1 == 'lc' 比较3、if... ...
分类:
其他好文 时间:
2020-02-16 15:03:30
阅读次数:
75
10.1、实验数据: mysql> select * from test;+----+------+------+| id | name | age |+----+------+------+| 1 | lc | 20 || 2 | lbd | 21 |+----+------+------+5 r... ...
分类:
数据库 时间:
2020-02-16 10:23:40
阅读次数:
92
1、查看mysql的建库编码语言: mysql> show create database lc\G;*************************** 1. row ***************************Database: lcCreate Database: CREATE D... ...
分类:
数据库 时间:
2020-02-16 10:18:44
阅读次数:
123
Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input ...
分类:
其他好文 时间:
2020-02-16 01:07:50
阅读次数:
63