DSA_Code
DSA_Code copied to clipboard
Hacktoberfest 2025 OPEN FIRST Pull Request
This Pull Request adds a simple implementation to calculate the area and circumference of a circle. The code demonstrates basic mathematical formulas and function usage in a clear and readable...
## Description This PR adds a C++ solution for the LeetCode problem: "Count Distinct Subarrays Divisible by K in Sorted Array" - Problem Link: https://leetcode.com/problems/count-distinct-subarrays-divisible-by-k-in-sorted-array/ - Added full problem statement,...
Description This PR adds a C++ solution for the CSES problem: "Number Spiral" (Problem ID: 1071) - Problem Link: https://cses.fi/problemset/task/1071/ - Includes detailed explanation, complexity analysis, and test cases -...
### Algorithm Name Dijkstra Algorithm ### Programming Language Java ### Category Graph Algorithms ### Difficulty Level Medium (Intermediate) ### Algorithm Description Problem Statement Implement Dijkstra’s Algorithm to find the shortest...
### Algorithm Name Depth First Search ### Programming Language Java ### Category Graph Algorithms ### Difficulty Level Easy (Beginner friendly) ### Algorithm Description DFS is widely used in a variety...
### Algorithm Name Merge Sort ### Programming Language Java ### Category Sorting ### Difficulty Level Medium (Intermediate) ### Algorithm Description Merge Sort is a divide-and-conquer algorithm that splits an array...
Added [818. Race Car](https://leetcode.com/problems/race-car/) Dynamic Programming solution in Java - Explained approach, time & space complexity - Added test cases - Follows repository structure and guidelines I’ve verified the solution...
an optimised code for two sum problem.