Skip to content
MosespushpaPublic

About

This repository is a work in progress and a record of continuous learning, not a complete DSA reference. The focus is on understanding, steady improvement, and writing better solutions with each new iteration.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

61 Commits

Folders and files

Repository files navigation

Java DSA and Problem-Solving Journey

This repository documents my progress in learning Java, data structures, algorithms, and problem solving. I started this journey on August 18, 2025. After several learning phases and breaks in consistency, I restarted from the fundamentals on November 29, 2026 with a clearer goal: build strong Java foundations, improve my problem-solving ability, and prepare for technical interviews.

This is an active learning repository. It contains both earlier practice and the work from my current restart, so it also shows how my understanding and coding style have changed over time.

Current Focus

I am currently rebuilding my foundation from scratch rather than rushing into advanced problems.

My priorities are to:

  • Strengthen core Java concepts and write clear, structured code.
  • Separate input/output handling from reusable program logic.
  • Understand each algorithm instead of only memorizing its implementation.
  • Practice dry runs and analyze time and space complexity.
  • Build consistency through regular problem solving.
  • Progress toward coding interviews and stronger independent problem-solving skills.

The latest work in Basics experiments with separating responsibilities:

  • Basic.java handles command-line tags, user input, and output.
  • Logic.java contains the reusable methods and conditions.
  • Word.java renders terminal headings for the selected exercise Generated by KIRO.

Current commands include vote and senior.

Work Completed So Far

The repository contains practice from different stages of my learning journey.

Area What I have practiced Status
Java fundamentals Console and file input, data types, methods, conditionals, and basic string handling Revisiting now
Loops for, while, and nested-loop exercises Practiced
Pattern problems Star, number, triangle, pyramid, and matrix-style patterns Practiced
Basic problem solving Factorial, Fibonacci, palindrome, digit operations, prime checks, and numeric series Practiced
Sorting algorithms Bubble, selection, insertion, merge, and quick sort Implemented for learning
Recursion Recursive Fibonacci, merge sort, quick sort, and related exercises Practiced
Logic-building problems Arithmetic, BMI, even/odd, sums, powers, number guessing, and rectangle overlap In progress
Subset generation String subsets using bit masking Practiced
LeetCode Initial exploration of array and string problems In progress

Some older exercises are incomplete or use different coding conventions. I am keeping them in the repository because they are part of the learning history, while gradually replacing them with clearer implementations.

Repository Structure

DSA/
├── Basics/          # Java fundamentals, input/output, and basic conditions
├── Loops/           # for-loop and while-loop exercises
├── Nested_Loops/    # Nested loops and pattern-building practice
├── Patterns/        # Number and star pattern programs
├── Practice/        # General problem-solving exercises
├── Sorting/         # Sorting algorithms and subset generation
├── LBP/
│   ├── Basic/       # Introductory logic-building problems
│   └── Easy/        # Easy-level problem-solving exercises
├── leetcode/        # LeetCode study and work in progress
└── util/            # Shared input utilities

Selected Implementations

Running the Programs

Requirements

  • JDK 11 or newer
  • A terminal or a Java-compatible IDE

Most programs are standalone Java classes without Maven or Gradle. Compile and run them from their directory.

For the current Basics runner:

cd Basics
javac Basic.java Logic.java Word.java
java Basic vote
java Basic senior

For a standalone algorithm:

cd Sorting
javac Merge_Sort.java
java Merge_Sort

Input styles vary because the repository contains exercises from different stages. Some programs read from the terminal, some use hard-coded examples, and a few read from text files.

Learning Timeline

  • August 18, 2025: Started learning Java and DSA from scratch with basic input/output and datatype exercises.
  • August–September 2025: Practiced conditions, loops, nested loops, patterns, basic mathematics, and small problem-solving exercises.
  • January 2026: Returned to the journey with Fibonacci and sorting practice.
  • June–July 2026: Implemented and revisited bubble, selection, insertion, merge, and quick sort, then began exploring LeetCode problems.
  • August–September 2026: Worked through basic and easy logic-building exercises.
  • November 29, 2026: Restarted from Java fundamentals with an emphasis on structure, consistency, problem solving, and interview preparation.

Roadmap

My planned progression is:

  1. Rebuild Java fundamentals and basic problem-solving habits.
  2. Revisit sorting, searching, recursion, and complexity analysis.
  3. Strengthen array and string problem solving.
  4. Study linked lists, stacks, queues, hash-based structures, trees, heaps, and graphs.
  5. Learn backtracking, greedy algorithms, and dynamic programming.
  6. Solve interview-style problems consistently and document the reasoning behind each solution.

Repository Status

This repository is a work in progress and a record of continuous learning, not a complete DSA reference. The focus is on understanding, steady improvement, and writing better solutions with each new iteration.

About

This repository is a work in progress and a record of continuous learning, not a complete DSA reference. The focus is on understanding, steady improvement, and writing better solutions with each new iteration.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages