Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
GitHub Copilot
Write better code with AI
GitHub Spark
New
Build and deploy intelligent apps
GitHub Models
New
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
Documentation
GitHub Skills
Blog
Integrations
GitHub Marketplace
MCP Registry
View all features
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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 }}
nishchalsangai
/
Arrays
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Basic array problems
github.com/nishchalsangai/Arrays
0
stars
0
forks
Branches
Tags
Activity
Star
Notifications
You must be signed in to change notification settings
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
nishchalsangai/Arrays
master
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
18 Commits
.vscode
.vscode
MaximumSumK.cpp
MaximumSumK.cpp
MaximumSumK.exe
MaximumSumK.exe
MinimumFlip.cpp
MinimumFlip.cpp
MinimumFlip.exe
MinimumFlip.exe
NBonnaci.cpp
NBonnaci.cpp
NBonnaci.exe
NBonnaci.exe
SubarrayWithSum.cpp
SubarrayWithSum.cpp
SubarrayWithSum.exe
SubarrayWithSum.exe
TrapinRainWater.cpp
TrapinRainWater.cpp
TrapinRainWater.exe
TrapinRainWater.exe
checkArrayIsSorted.cpp
checkArrayIsSorted.cpp
freqInSortedArray.cpp
freqInSortedArray.cpp
freqInSortedArray.exe
freqInSortedArray.exe
leadersInArray.cpp
leadersInArray.cpp
leadersInArray.exe
leadersInArray.exe
leftRotateArrayByD.cpp
leftRotateArrayByD.cpp
leftRotateArrayByD.exe
leftRotateArrayByD.exe
leftRotateArrayByOne.cpp
leftRotateArrayByOne.cpp
leftRotateArrayByOne.exe
leftRotateArrayByOne.exe
majorityElement.cpp
majorityElement.cpp
majorityElement.exe
majorityElement.exe
maximumBinary.cpp
maximumBinary.cpp
maximumBinary.exe
maximumBinary.exe
maximumCircularSum.cpp
maximumCircularSum.cpp
maximumCircularSum.exe
maximumCircularSum.exe
maximumDifference.cpp
maximumDifference.cpp
maximumDifference.exe
maximumDifference.exe
maximumLengthOddEven.cpp
maximumLengthOddEven.cpp
maximumLengthOddEven.exe
maximumLengthOddEven.exe
maximumSubArraySum.cpp
maximumSubArraySum.cpp
maximumSubArraySum.exe
maximumSubArraySum.exe
moveZerosToEnd.cpp
moveZerosToEnd.cpp
moveZerosToEnd.exe
moveZerosToEnd.exe
printDistictElement.cpp
printDistictElement.cpp
printDistictElement.exe
printDistictElement.exe
reversingAnArray.cpp
reversingAnArray.cpp
reversingAnArray.exe
reversingAnArray.exe
stockBuyAndSell.cpp
stockBuyAndSell.cpp
stockBuyAndSell.exe
stockBuyAndSell.exe
stockBuyAndSellEff.cpp
stockBuyAndSellEff.cpp
stockBuyAndSellEff.exe
stockBuyAndSellEff.exe
View all files
About
Basic array problems
github.com/nishchalsangai/Arrays
Topics
answers
array
Uh oh!
There was an error while loading.
Please reload this page
.
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Languages
C++
100.0%
You can’t perform that action at this time.