A plugin that can fetch leetcode problem in your logseq.
It provides two commands: ltc all problems
and ltc fetch problem
.
- install this plugin
logseq-plugin-leetcode
; - Input your leetcode account info in
logseq > Settings > Plugins > logseq plugin leetcode
;
- This command will fetch all leetcode problems, and builds tree page.
- This command will only create
leetcode hot 100
problems detail page. - If you want fetch speical problem detail in your page or block, using
ltc fetch problem
cmd.
- Using problem slug as id to fetch. Leetcode URL like
https://leetcode.cn/problems/3sum/
,3sum
is the slug for this problem. - Input
3sum/ltc fetch problem
, and type enter to fetch detail.
After you fetched leetcode to your logseq, those problems would become your leetcode metadata
.
So you can just pay attention to your writing.
A case: I create a leetcode hot 100 page, and link to those problems.