Skip to content

sanjaykumars-dev/interview-prep-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“˜ Java DSA Interview Prep

This repository contains Java implementations of frequently asked Data Structures and Algorithms (DSA) problems in technical interviews. Each solution prioritizes clarity, performance, and readability. Where relevant, both brute-force and optimized approaches are included, along with time and space complexity analysis.


๐Ÿ“š Topics Covered

โœ… Arrays

Difficulty Problem
Easy Two Sum
Easy Best Time to Buy and Sell Stock
Medium Product of Array Except Self
Easy Maximum Subarray
Easy Maximum Average Subarray I
Medium Longest Substring Without Repeating Characters
Easy Valid Palindrome
Medium Two Sum II
Medium Container With Most Water
Easy Move Zeroes
Easy Find Pivot Index
Easy Majority Element
Medium Three Sum
Medium Minimum Size Subarray Sum

Pattern Based Questions

Sliding Window

Difficulty Problem
Medium Grumpy Book Store Owner

Data Structure Implementations

Implementation Description
Binary Search Tree (BST) A complete implementation of a BST with operations like insertion, in-order traversal, height, size, number of leaf nodes, min/max value lookup, and search. Located under src/tree/BinarySearchTree.java
AVL Tree Implemented AVL Tree with basic insert functionality. Located under src/tree/AVLTree.java

๐Ÿง  How to Use

  • Each topic is organized under its respective package inside the src/ directory.
  • Solutions are written in Java and can be executed individually using the main method in each file.
  • Use this repo as:
    • A reference for interview prep
    • A launchpad to build more advanced DSA skills
    • A project portfolio entry to showcase on your GitHub

๐Ÿš€ Goal

To prepare for top-tier software engineering interviews (targeting 24+ LPA roles) by mastering core DSA concepts using Java. This repository is part of a structured roadmap focused on building strong fundamentals.


๐Ÿ“Œ Coming Soon

  • ๐Ÿ”„ Stack & Queue
  • ๐Ÿ“ˆ Binary Search
  • ๐ŸŒฒ AVL Tree, Tree Traversals
  • ๐Ÿงฎ Recursion & Backtracking
  • ๐Ÿ”— Linked Lists
  • ๐Ÿง  Dynamic Programming
  • ๐Ÿงฉ Graphs & Greedy Algorithms
  • ๐Ÿ’ฌ Mock Interviews

๐Ÿ™Œ Contributions

This is a personal interview-prep repository, but you're welcome to fork it, use it for your own prep, and contribute improvements.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages