Skip to content

himanshujaindev/data-structures-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-structures-algorithms

DSA in Python and Java

Coding Profile

Installation and Setup

  1. 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'
  1. VS Code Extension - java, py-format
py-extension java-extension
  1. Enable Format on Save option
  2. Update Keyboard shortcut:
    a. Start Debugging = ⌘+'
    b. Run Without Debugging = ⌘+⏎
    (Applicable for java and py)
  3. 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]>

Folder Structure

brew install tree
(tree -P '*.java|*.py') | sed '1s/^/```\n/' | sed '$a\
```' > FILES.md

Keyboard Shortcuts (VSCode)

  1. Format: ⌘+S
  2. Debug: ⌘+'
  3. Run: ⌘+⏎

Todo Before Commit

  • Format the document
  • Update the directory tree
  • Follow the naming convention

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()

Resources

  1. https://neetcode.io/practice

About

Repository for DSA code

Topics

Resources

Stars

Watchers

Forks