最新 最热

Leetcode 题目解析之 Unique Paths

A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).

2022-01-10
1

Leetcode 题目解析之 Search in Rotated Sorted Array II

Follow up for "Search in Rotated Sorted Array":

2022-01-10
1

Thinkphp3.2.3打印上一句执行的sql语句

SELECT COUNT(*) AS tp_count FROM fh_joinactivity as a INNER JOIN fh_activity as b on b.a_id = a.a_id WHERE a.u_id = 1 AND a.is_read = 0 AND b.a_time < 148655623...

2022-01-10
1

Leetcode 题目解析之 Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead...

2022-01-09
1

Leetcode 题目解析之 Minimum Path Sum

Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.

2022-01-09
1

Leetcode 题目解析之 Majority Element II

Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space.

2022-01-09
1

Leetcode 题目解析之 Majority Element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.

2022-01-08
1

Leetcode 题目解析之 Best Time to Buy and Sell Stock II

Say you have an array for which the ith element is the price of a given stock on day i.

2022-01-08
1

20.6 if文件目录属性判断

if文件目录属性判断if 判断文件、目录属性 [ -f file ]判断是否是普通文件,且存在[ -d file ] 判断是否是目录,且存在[ -e file ] 判断文件或目录是否存在[ -r file ] 判断文件是否可读[ -w file ] 判断文件是否可写...

2022-01-06
1

价值观

值是通过计算表达式产生的数据。本节介绍 M 语言中值的种类。每种值都与文字语法、一组该类型的值、一组定义在该组值上的运算符以及归属于新构造值的内在类型相关联。...

2022-01-05
1