现在,有了 obsidian-pseudocode 插件,你可以在 Obsidian 中轻松地渲染 LaTeX 风格的伪代码,让你的文档更加美观易读。 Obsidian-Pseudocode 插件基于pseudocode.js,一款将伪代码美观地排版成 HTML 的 JavaScript 库。该插件支持 LaTeX 风格的伪代码输入,包括 LaTeX 的 algorithm 包中的算法结构,即使你没有 LaTeX 经验,...
5. Consider the context. If you are writing an algorithm for quicksort, the statement "use quicksort to sort the values" is hiding too much detail; if we have already studied quicksort in class and later use it as a subroutine in another algorithm, the statement would be appropriate to ...
\begin{algorithm}[H]\caption{Quick Sort algorithm}\label{alg:sampling1}\begin{algorithmic}[1]\Function{QSort}{$l,r$}\If{$l\geqr$}\State\textbf{exit}\EndIf\Statepick a random element in$A[l], ..., A[r]$as$pivot$\State$i=l, j=r$\While{$i\leqj$}\While{$A[i] < pivot$}$...
javascript template algorithm typescript frontend leetcode cpp interview competitive-programming pseudocode kick-start pat acwing Updated Feb 26, 2024 C++ SaswatPadhi / pseudocode.js Star 227 Code Issues Pull requests Beautiful pseudocode for the Web javascript latex mathjax katex pseudocode render...