Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

NeetCode — Java Interview Practice

A Java interview-practice repository synced from NeetCode.io, used to work through data-structure and algorithm patterns and keep accepted solutions easy to revisit.

Solutions are synced automatically from NeetCode.io.

Goal

This repository is used to practice reusable problem-solving patterns rather than simply accumulate accepted submissions.

For each problem, the focus is on:

  • Recognizing the underlying pattern quickly
  • Writing clear and idiomatic Java
  • Understanding time and space complexity
  • Handling edge cases deliberately
  • Revisiting problems that required hints

Target Topics

Arrays & Hashing
Two Pointers
Sliding Window
Stack
Binary Search
Linked Lists
Trees
Tries
Heap / Priority Queue
Backtracking
Graphs
Dynamic Programming
Greedy
Intervals
Math & Geometry
Bit Manipulation

Review Checklist

When revisiting a solution, I check:

  1. Can I explain the brute-force approach first?
  2. What observation enables the optimized solution?
  3. Which data structure or algorithmic pattern is being used?
  4. What are the time and space complexities?
  5. Which edge cases could break the implementation?
  6. Can I reproduce the solution without looking at the previous code?

Java Focus

The Java solutions emphasize:

  • Appropriate use of collections such as HashMap, HashSet, ArrayDeque and PriorityQueue
  • Clear method boundaries and naming
  • Avoiding unnecessary allocations
  • Correct handling of nulls, indexes and integer boundaries
  • Interview-friendly implementations that are easy to explain

Repository Structure

NeetCode sync currently groups submissions under a category directory, then by problem. Multiple submissions may exist for the same problem as the solution evolves.

Data Structures & Algorithms/
  <problem>/
    submission-<n>.java

The exact set of problems grows as new submissions are synced.

Why This Repository Exists

Algorithm practice is only one part of software engineering, but it is useful for sharpening reasoning under constraints. My broader engineering work focuses on Java, Spring Boot, Kafka, Kubernetes and cloud-native backend systems.

About

Java data structures & algorithms practice for technical interviews

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages