1 """ 2 Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the ...
分类:
其他好文 时间:
2020-02-20 17:14:27
阅读次数:
75
2020/2/18 DAY 1 Most researchers reported having pride in their institutions and passion for their work, but spoke of the high personal toll of their ...
分类:
其他好文 时间:
2020-02-18 16:36:47
阅读次数:
275
解压版本Python,手动安装pip报错 λ pip Traceback (most recent call last): File "runpy.py", line 193, in _run_module_as_main File "runpy.py", line 86, in _run_code ...
分类:
编程语言 时间:
2020-02-18 13:07:37
阅读次数:
269
原题链接在这里:https://leetcode.com/problems/elimination-game/ 题目: There is a list of sorted integers from 1 to n. Starting from left to right, remove the fi ...
分类:
其他好文 时间:
2020-02-18 09:56:29
阅读次数:
79
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2020-02-17 22:33:36
阅读次数:
99
import os,timepath = r"D:\重命名图片"# files = os.listdir(path)list_url = ["Mainpage","New Products All products(Most Popular)","New Products All products( ...
分类:
其他好文 时间:
2020-02-17 20:16:57
阅读次数:
114
布尔类型: 我们已经知道布尔类型只有两个值True和False 布尔类型的操作: 比较运算、逻辑运算;操作结果都是布尔值。 比较运算符: 完成比较运算需要知道,比较运算符。(== 等于)(!= 不等于)(> 大于) (<小于)(<= 小于等于)(>= 大于等于) 示例: >>> 33.0==33 T ...
分类:
编程语言 时间:
2020-02-16 20:45:21
阅读次数:
96
1.题目描述 英文版: Given n non negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that ...
分类:
其他好文 时间:
2020-02-16 20:34:34
阅读次数:
68
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
删除字符的镜像问题,状态转移方程一样~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; const int mod=1e9+7; string s; long long dp[maxn][maxn]; int mai ...
分类:
其他好文 时间:
2020-02-14 22:16:51
阅读次数:
104