Pseudocode Writer
— quick editor for algorithms and notes
Copy
Download
Clear
Pseudocode
Lines:
1
// Example: Binary Search (1-based index) FUNCTION binary_search(A, n, target) low <- 1 high <- n WHILE low <= high DO mid <- floor((low + high) / 2) IF A[mid] == target THEN RETURN mid ELSE IF A[mid] < target THEN low <- mid + 1 ELSE high <- mid - 1 END IF END WHILE RETURN NOT_FOUND END FUNCTION
Templates
Loop
If/Else
Function
Binary Search
Formatting
Indent 2 spaces
Unindent
Use Tab to indent selected lines
Preview / Sample
Settings
Font size:
Show line numbers: