Skip to content

himanshujaindev/dsa-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA - JAVA

DSA Code written in JAVA

Coding Profile

Installation and Setup

  1. Download JDK - here
❯ javac -version
javac 23.0.1

❯ java -version
java version "23.0.1" 2024-10-15
Java(TM) SE Runtime Environment (build 23.0.1+11-39)
Java HotSpot(TM) 64-Bit Server VM (build 23.0.1+11-39, mixed mode, sharing)
  1. VS Code Extension - here
  2. Enable Format on Save option
  3. Update Keyboard shortcut:
    a. Start Debugging = ⌘+'
    b. Run Without Debugging = ⌘+⏎

Folder Structure

(tree -P '*.java') | 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

Commands

javac Rootpath/<filename>.java
java Rootpath/<classname>

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://cp-algorithms.com

About

Repository for DSA code - JAVA

Topics

Resources

Stars

Watchers

Forks

Languages