Home
zjpzhao's Blog
Cancel

Markdown Sytax Tutorials

这是一级标题 # 这是一级标题 这是二级标题 ## 这是二级标题 换行用空格+enter或者<br> 强调 hhh **hhh** hhh *hhh* [[hehehe]] [[hehehe]] My Great Heading ### My Great Heading {#custom-id} 公式 $$ \lim_{x \to...

LeetCode-673. 最长递增子序列的个数

关联 先阅读LeetCode-300. 最长上升子序列,在此基础上进行扩展。 此题相当于就是在300题的基础上增加记录历史信息。 方法1 DP 思考 在LeetCode-300. 最长上升子序列的方法一的基础上,增加一个数组$cnt$,$cnt[i]$表示以$num[i]$结尾的最长上升子序列的个数。设$nums$的最长上升子序列的长度为$maxlen$,则对于所有$dp[i]=maxlen...

LeetCode-300. 最长上升子序列

关联 LeetCode-673. 最长递增子序列的个数 方法1 DP 思考 $dp[i]$表示前i个元素中,以$num[i]$元素结尾(必选)的最长上升子序列长度,写出下列状态转移方程: \(dp[i]=max(dp[j])+1,\ 0\le j \lt i,\ num[j]<num[i].\) 整体的最长上升子序列数量是:$LIS=max{dp[i]},\ 0\le i \lt ...

搭建个人博客:Jekyll + Github Pages + VSCode

Github Page + Jekyll 我选用的是Jekyll主题Chirpy,其效果页面和使用手册在Live Demo,创建该主题的page repo有两种方式: 使用Chripy Starter:非常容易进行主题的版本升级,隔离无关的主题文件项目,仓库比较简洁。 直接在GitHub上Fork该项目:对个性化二次开发友好但是难升级,经过各种折腾后的我个人不推荐使用。 下面记...

Common Linux Commands

Understand a Command $ man command for manual pages $ command --help for help Run at Background The screen command launches a terminal in the background which can be detached from and then...