Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Nawaz2000
Java-DSA
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Java-DSA
/
Array
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
Java-DSA
/
Array
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
01- majority element (Boyer-Moore's algorithm)
01- majority element (Boyer-Moore's algorithm)
02- remove duplicates from a sorted array
02- remove duplicates from a sorted array
03- move all zeros to the end of array
03- move all zeros to the end of array
04- left rotate an array by d elements
04- left rotate an array by d elements
05- maximum subarray sum (Kadane's algorithm)
05- maximum subarray sum (Kadane's algorithm)
06 - equilibrium index
06 - equilibrium index
07- missing number in an array
07- missing number in an array
08- atleast two greater elements
08- atleast two greater elements
09- change string into a new character set
09- change string into a new character set
10- sorted merge in one array
10- sorted merge in one array
11- product of array except itself (without using division)
11- product of array except itself (without using division)
12- merge two sorted arrays without using extra space
12- merge two sorted arrays without using extra space
13- merge two sorted arrays without extra space (Gap method)
13- merge two sorted arrays without extra space (Gap method)
14- three sum
14- three sum
15- four sum
15- four sum
16- two sum
16- two sum
17- max words found in a sentences
17- max words found in a sentences
18- stay positive
18- stay positive
19- subarray with given sum
19- subarray with given sum
20- count subarrays with given sum
20- count subarrays with given sum
21- complement
21- complement
22- delete characters to make an anagram
22- delete characters to make an anagram
23- missing numbers in an unsorted array
23- missing numbers in an unsorted array
24- smallest positive missing number
24- smallest positive missing number
25- valid ip
25- valid ip
26- minimum swaps to sort
26- minimum swaps to sort
27- maximum index
27- maximum index
28- find missing and repeating
28- find missing and repeating
29- count inversions
29- count inversions
30- next greater element in the array
30- next greater element in the array
.gitignore
.gitignore
View all files
You can’t perform that action at this time.