Compare commits
10 commits
a16f7ad8c5
...
420640d449
Author | SHA1 | Date | |
---|---|---|---|
420640d449 | |||
4a863dcda6 | |||
a24806d71d | |||
2269bdebae | |||
4d409a3892 | |||
9e3b45d83f | |||
16bf361f18 | |||
2a1004a7c7 | |||
8aa7a6d3bb | |||
0a26a405cb |
5
.obsidian/appearance.json
vendored
5
.obsidian/appearance.json
vendored
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
"theme": "moonstone",
|
||||
"translucency": true,
|
||||
"cssTheme": "Prism",
|
||||
"cssTheme": "Shimmering Focus",
|
||||
"interfaceFontFamily": "IBM Plex Sans",
|
||||
"textFontFamily": "IBM Plex Mono,monospace",
|
||||
"monospaceFontFamily": "IBM Plex Mono",
|
||||
"baseFontSize": 19,
|
||||
"enabledCssSnippets": []
|
||||
"enabledCssSnippets": [],
|
||||
"accentColor": ""
|
||||
}
|
29
.obsidian/core-plugins-migration.json
vendored
Normal file
29
.obsidian/core-plugins-migration.json
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"file-explorer": true,
|
||||
"global-search": true,
|
||||
"switcher": true,
|
||||
"graph": true,
|
||||
"backlink": true,
|
||||
"outgoing-link": true,
|
||||
"tag-pane": true,
|
||||
"page-preview": true,
|
||||
"daily-notes": false,
|
||||
"templates": true,
|
||||
"note-composer": true,
|
||||
"command-palette": true,
|
||||
"slash-command": false,
|
||||
"editor-status": true,
|
||||
"starred": true,
|
||||
"markdown-importer": false,
|
||||
"zk-prefixer": false,
|
||||
"random-note": true,
|
||||
"outline": true,
|
||||
"word-count": true,
|
||||
"slides": false,
|
||||
"audio-recorder": false,
|
||||
"workspaces": false,
|
||||
"file-recovery": false,
|
||||
"publish": false,
|
||||
"sync": false,
|
||||
"canvas": true
|
||||
}
|
5
.obsidian/plugins/obsidian-git/data.json
vendored
5
.obsidian/plugins/obsidian-git/data.json
vendored
|
@ -20,5 +20,8 @@
|
|||
"basePath": "",
|
||||
"differentIntervalCommitAndPush": true,
|
||||
"changedFilesInStatusBar": true,
|
||||
"username": ""
|
||||
"username": "",
|
||||
"showedMobileNotice": true,
|
||||
"refreshSourceControlTimer": 7000,
|
||||
"showBranchStatusBar": true
|
||||
}
|
26637
.obsidian/plugins/obsidian-git/main.js
vendored
26637
.obsidian/plugins/obsidian-git/main.js
vendored
File diff suppressed because it is too large
Load diff
6
.obsidian/plugins/obsidian-git/manifest.json
vendored
6
.obsidian/plugins/obsidian-git/manifest.json
vendored
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"id": "obsidian-git",
|
||||
"name": "Obsidian Git",
|
||||
"description": "Backup your vault with git.",
|
||||
"isDesktopOnly": true,
|
||||
"description": "Backup your vault with Git.",
|
||||
"isDesktopOnly": false,
|
||||
"js": "main.js",
|
||||
"version": "1.31.0"
|
||||
"version": "2.6.0"
|
||||
}
|
||||
|
|
8
.obsidian/plugins/obsidian-git/styles.css
vendored
8
.obsidian/plugins/obsidian-git/styles.css
vendored
|
@ -8,6 +8,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type='git-view'] .view-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.loading>svg {
|
||||
animation: 2s linear infinite loading;
|
||||
transform-origin: 50% 50%;
|
||||
|
@ -298,6 +302,10 @@
|
|||
width: 4em;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-diff-tbody tr {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.workspace-leaf-content[data-type="diff-view"] .d2h-code-side-linenumber:after {
|
||||
content: "\200b";
|
||||
}
|
||||
|
|
|
@ -3,11 +3,7 @@
|
|||
"obsidian-prism-theme@@light-accent-color-preset": "pt-accent-color-green-lt",
|
||||
"obsidian-prism-theme@@color-schemes-dt": "pt-color-scheme-indigo-dt",
|
||||
"obsidian-prism-theme@@pt-disable-blur": true,
|
||||
"obsidian-prism-theme@@pt-disable-animations": true,
|
||||
"obsidian-prism-theme@@pt-disable-custom-icons": false,
|
||||
"obsidian-prism-theme@@pt-hide-view-header": false,
|
||||
"obsidian-prism-theme@@accent-style-dt": "pt-accent-style-borderandfilled-dt",
|
||||
"obsidian-prism-theme@@accent-style-lt": "pt-accent-style-borderandfilled-lt",
|
||||
"obsidian-prism-theme@@background-type-lt": "pt-background-default-lt",
|
||||
"obsidian-prism-theme@@light-mark-highlight-style": "pt-highlight-style-filled-lt"
|
||||
}
|
|
@ -3861,7 +3861,14 @@ const tr = {};
|
|||
|
||||
const uk = {};
|
||||
|
||||
const zh = {};
|
||||
const zh = {
|
||||
"Default:": "默认:",
|
||||
"Error:": "错误:",
|
||||
"missing default light value, or value is not in a valid color format": "缺少默认的浅色模式色值,或该色值没有采用一个有效的颜色格式",
|
||||
"missing default dark value, or value is not in a valid color format": "缺少默认的深色模式色值,或该色值没有采用一个有效的颜色格式",
|
||||
"missing default value, or value is not in a valid color format": "缺少默认色值,或该色值没有采用一个有效的颜色格式",
|
||||
"missing default value": "缺少默认色值",
|
||||
};
|
||||
|
||||
const zhTw = {};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "obsidian-style-settings",
|
||||
"name": "Style Settings",
|
||||
"version": "0.4.11",
|
||||
"version": "0.4.12",
|
||||
"minAppVersion": "0.11.5",
|
||||
"description": "Offers controls for adjusting theme, plugin, and snippet CSS variables.",
|
||||
"author": "mgmeyers",
|
||||
|
|
7
.obsidian/themes/Prism/manifest.json
vendored
Normal file
7
.obsidian/themes/Prism/manifest.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "Prism",
|
||||
"version": "3.0.0-beta.10",
|
||||
"minAppVersion": "0.16.0",
|
||||
"author": "Damian Korcz",
|
||||
"authorUrl": "https://github.com/damiankorcz"
|
||||
}
|
6934
.obsidian/themes/Prism/theme.css
vendored
Normal file
6934
.obsidian/themes/Prism/theme.css
vendored
Normal file
File diff suppressed because one or more lines are too long
7
.obsidian/themes/Shimmering Focus/manifest.json
vendored
Normal file
7
.obsidian/themes/Shimmering Focus/manifest.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"name": "Shimmering Focus",
|
||||
"version": "3.179",
|
||||
"minAppVersion": "0.16.0",
|
||||
"author": "pseudometa",
|
||||
"authorUrl": "https://github.com/chrisgrieser/shimmering-focus"
|
||||
}
|
443
.obsidian/themes/Shimmering Focus/theme.css
vendored
Normal file
443
.obsidian/themes/Shimmering Focus/theme.css
vendored
Normal file
File diff suppressed because one or more lines are too long
185
.obsidian/workspace.json
vendored
Normal file
185
.obsidian/workspace.json
vendored
Normal file
|
@ -0,0 +1,185 @@
|
|||
{
|
||||
"main": {
|
||||
"id": "8e9accceb03b8cbb",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "84346e9cb4897289",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "734cb4b36b9fd11f",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Wiki/Ideas.md",
|
||||
"mode": "preview",
|
||||
"backlinks": false,
|
||||
"source": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "d964937eb85b8dd3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Wiki/pages/Geph TUI.md",
|
||||
"mode": "source",
|
||||
"backlinks": false,
|
||||
"source": true
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 1
|
||||
}
|
||||
],
|
||||
"direction": "vertical"
|
||||
},
|
||||
"left": {
|
||||
"id": "8f339aba13fc7b34",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "181b0904a5ea9093",
|
||||
"type": "tabs",
|
||||
"dimension": 80.92443140132062,
|
||||
"children": [
|
||||
{
|
||||
"id": "dc7b766adde71133",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "byCreatedTime"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "9fea4d6a3fb7b065",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "search",
|
||||
"state": {
|
||||
"query": "bfs",
|
||||
"matchingCase": false,
|
||||
"explainSearch": false,
|
||||
"collapseAll": true,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "67a5b9b7405b0aab",
|
||||
"type": "tabs",
|
||||
"dimension": 19.075568598679386,
|
||||
"children": [
|
||||
{
|
||||
"id": "433ee2e054563ec8",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "starred",
|
||||
"state": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 471
|
||||
},
|
||||
"right": {
|
||||
"id": "84d48f88a06a5d05",
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "600e2282db7d13db",
|
||||
"type": "tabs",
|
||||
"dimension": 50.03668378576669,
|
||||
"children": [
|
||||
{
|
||||
"id": "b7747330b7aae8d3",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "Wiki/pages/Geph TUI.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
"showSearch": false,
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "9519bbe1baa8be43",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "Wiki/pages/Geph TUI.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bad3fb60ee1eaeb0",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "tag",
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "5904586ead812fd4",
|
||||
"type": "tabs",
|
||||
"dimension": 49.96331621423331,
|
||||
"children": [
|
||||
{
|
||||
"id": "08480958817d433e",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"state": {
|
||||
"file": "Wiki/pages/Geph TUI.md"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 419
|
||||
},
|
||||
"ribbon": {
|
||||
"mostRecentAction": ""
|
||||
},
|
||||
"active": "d964937eb85b8dd3",
|
||||
"lastOpenFiles": [
|
||||
"Wiki/Ideas.md",
|
||||
"Wiki/Notes for CS.md",
|
||||
"Untitled.md",
|
||||
"OJ notes/pages/Leetcode Binary-Tree-Level-Order-Traversal.md",
|
||||
"OJ notes/pages/Breadth First Search.md",
|
||||
"OJ notes/OJ-index.md",
|
||||
"Index.md",
|
||||
"OJ notes/pages/Elementary Math Problems.md",
|
||||
"Wiki/pages/Gentoo log parser.md",
|
||||
"Wiki/Wiki-Index.md"
|
||||
]
|
||||
}
|
|
@ -12,7 +12,7 @@
|
|||
>
|
||||
> ##### Difficulty:
|
||||
>
|
||||
> #CS*analysis #difficulty*
|
||||
> #CS_analysis #difficulty_easy
|
||||
>
|
||||
> ##### Additional tags:
|
||||
|
||||
|
|
|
@ -82,6 +82,9 @@ I tried with DFS, but
|
|||
|
||||
#### BFS
|
||||
|
||||
> [!tip]
|
||||
> Search from 0 instead of 1, can make it easier.
|
||||
|
||||
Start searching from 0s, because the search direction matters.
|
||||
|
||||
pseudo code:
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
>
|
||||
> ##### Revisions:
|
||||
>
|
||||
> N/A
|
||||
> 2022-09-21
|
||||
|
||||
##### Related topics:
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
>
|
||||
> ##### Revisions:
|
||||
>
|
||||
> N/A
|
||||
> 2022-09-21
|
||||
|
||||
##### Related topics:
|
||||
|
||||
|
@ -110,3 +110,34 @@ public:
|
|||
}
|
||||
};
|
||||
```
|
||||
|
||||
Alternative solution using private values
|
||||
```cpp
|
||||
class Solution {
|
||||
vector<vector<int>> ans;
|
||||
vector<int> combs = {};
|
||||
int N, K;
|
||||
void backtrack(int cur) {
|
||||
if (combs.size() == K) {
|
||||
// we reached the end, should push to the answer array
|
||||
ans.push_back(combs);
|
||||
return;
|
||||
} else if (cur <= N) {
|
||||
combs.push_back(cur);
|
||||
backtrack(cur + 1);
|
||||
|
||||
combs.pop_back();
|
||||
backtrack(cur + 1);
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
vector<vector<int>> combine(int n, int k) {
|
||||
N = n;
|
||||
K = k;
|
||||
backtrack(1);
|
||||
|
||||
return ans;
|
||||
}
|
||||
};
|
||||
```
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
>
|
||||
> ##### Revisions:
|
||||
>
|
||||
> N/A
|
||||
> 2022-09-21
|
||||
|
||||
##### Related topics:
|
||||
|
||||
##### Links:
|
||||
|
||||
- [Link to problem](https://leetcode.com/problems/implement-queue-using-stacks/submissions/)
|
||||
- [Link to problem](https://leetcode.com/problems/implement-queue-using-stacks/)
|
||||
|
||||
---
|
||||
|
||||
|
@ -52,15 +52,19 @@ Implement the `MyQueue` class:
|
|||
```
|
||||
|
||||
**Output**
|
||||
```
|
||||
[null, null, null, 1, 1, false]
|
||||
```
|
||||
|
||||
**Explanation**
|
||||
```
|
||||
MyQueue myQueue = new MyQueue();
|
||||
myQueue.push(1); // queue is: [1]
|
||||
myQueue.push(2); // queue is: [1, 2] (leftmost is front of the queue)
|
||||
myQueue.peek(); // return 1
|
||||
myQueue.pop(); // return 1, queue is [2]
|
||||
myQueue.empty(); // return false
|
||||
```
|
||||
|
||||
#### Constraints
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
>
|
||||
> ##### Revisions:
|
||||
>
|
||||
> N/A
|
||||
> 2022-09-21
|
||||
|
||||
##### Links:
|
||||
|
||||
|
|
3
Wiki/Ideas.md
Normal file
3
Wiki/Ideas.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
```query
|
||||
tag:#idea
|
||||
```
|
10
Wiki/pages/Gentoo log parser.md
Normal file
10
Wiki/pages/Gentoo log parser.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Glop An genlop alternative
|
||||
|
||||
written in rust / cpp
|
||||
#idea
|
||||
|
||||
## What does it do?
|
||||
|
||||
- parse gentoo log, summary for updated packages
|
||||
- estimate build times based on past achives
|
||||
- estimate package update time `se -atvuDN @world`
|
2
Wiki/pages/Geph TUI.md
Normal file
2
Wiki/pages/Geph TUI.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
Geph CLI and GUI sucks, let's make a TUI!
|
||||
#idea
|
Loading…
Reference in a new issue