- Installed natively via apt (not snap) for full feature support
- PPA:
ppa:mkasberg/ghostty-ubuntu - Updates automatically via
sudo apt upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ============================================================ | |
| # 1. UNION FIND (Disjoint Set Union) | |
| # ============================================================ | |
| # Use case: Connected components, cycle detection in graphs | |
| # Example: Number of Islands (LC 200) | |
| class UnionFind: | |
| def __init__(self, elements): | |
| self.parent = {e: e for e in elements} | |
| self.size = {e: 1 for e in elements} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" |