DSA in Python and Java
- Download JDK - here
❯ javac -version
javac 24
❯ java -version
java version "24" 2025-03-18
Java(TM) SE Runtime Environment (build 24+36-3646)
Java HotSpot(TM) 64-Bit Server VM (build 24+36-3646, mixed mode, sharing)
❯ python3 --version
Python 3.9.6
❯ alias py_activate
py_activate='python3 -m venv ~/pyenv && source ~/pyenv/bin/activate && pip3 list'


- Enable Format on Save option
- Update Keyboard shortcut:
a. Start Debugging =⌘+'
b. Run Without Debugging =⌘+⏎
(Applicable for java and py) - Set git user:
git config --global --edit
(filename: ~/.gitconfig)
git commit --amend --reset-author
git config --global user.name
git config --global user.email
git log
Author: himanshujaindev <[email protected]>
brew install tree
(tree -P '*.java|*.py') | sed '1s/^/```\n/' | sed '$a\
```' > FILES.md
- Format:
⌘+S
- Debug:
⌘+'
- Run:
⌘+⏎
- Format the document
- Update the directory tree
- Follow the naming convention
- Folder Name = Upper Camel Case ->
DataStructures
- File Name | Class Name = Small Underscore Case ->
min_heap.java
- Method Name | Variable Name = Small Camel Case ->
printHeap()