Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
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
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
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
Type
/
to 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 }}
cngeru
/
algorithms
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
main
Branches
Tags
Go to file
Code
Open more actions menu
Folders and files
Name
Name
Last commit message
Last commit date
Latest commit
History
2 Commits
2 Commits
Add Two Numbers.js
Add Two Numbers.js
Average of Levels in Binary Tree.js
Average of Levels in Binary Tree.js
Balanced Binary Tree.js
Balanced Binary Tree.js
Banking API.js
Banking API.js
Best time to Buy and Sell Stock.js
Best time to Buy and Sell Stock.js
Best time to buy and sell stocks II.js
Best time to buy and sell stocks II.js
Binary Tree Inorder Traversal.js
Binary Tree Inorder Traversal.js
Binary Tree Level Order Traversal.js
Binary Tree Level Order Traversal.js
Binary Tree Paths.js
Binary Tree Paths.js
Binary Tree Zigzag Level Order Traversal.js
Binary Tree Zigzag Level Order Traversal.js
CTCI.js
CTCI.js
Combination Sum II.js
Combination Sum II.js
Combination Sum.js
Combination Sum.js
Concatenated Words.js
Concatenated Words.js
Construct the Rectangle.js
Construct the Rectangle.js
Conway's Game of Life.js
Conway's Game of Life.js
Daily Temperatures.js
Daily Temperatures.js
Diameter of a Binary Tree.js
Diameter of a Binary Tree.js
Fibonacci and permutations.js
Fibonacci and permutations.js
Find Anagram Mappings.js
Find Anagram Mappings.js
Find Bottom Left Tree Value.js
Find Bottom Left Tree Value.js
Find Largest Value in Each Tree Row.js
Find Largest Value in Each Tree Row.js
First Bad Version.js
First Bad Version.js
Generate Parentheses.js
Generate Parentheses.js
Group Anagrams.js
Group Anagrams.js
IP to binaries.js
IP to binaries.js
Intersection of Two Arrays II.js
Intersection of Two Arrays II.js
Intersection of Two Arrays.js
Intersection of Two Arrays.js
KnapSack.js
KnapSack.js
Kth element - quickSort.js
Kth element - quickSort.js
LRUCache.js
LRUCache.js
Letter Combination Phone #.js
Letter Combination Phone #.js
Letter Combinations in a Phone Number.js
Letter Combinations in a Phone Number.js
Linked List Cycle.js
Linked List Cycle.js
Longest Continuous Increasing Subsequence.js
Longest Continuous Increasing Subsequence.js
Longest Palindromic Substring.js
Longest Palindromic Substring.js
Longest Substring Without Repeating Characters.js
Longest Substring Without Repeating Characters.js
Lowest Common Ancestor of a BST.js
Lowest Common Ancestor of a BST.js
Lowest Common Ancestor of a Binary Tree.js
Lowest Common Ancestor of a Binary Tree.js
Maximum Depth of Binary Tree.js
Maximum Depth of Binary Tree.js
Meeting Rooms II.js
Meeting Rooms II.js
Merge Intervals.js
Merge Intervals.js
Merge Two Sorted Lists.js
Merge Two Sorted Lists.js
MergeSort for LinkedList.js
MergeSort for LinkedList.js
Min Stack II.js
Min Stack II.js
Min Stack.js
Min Stack.js
Minimum Depth of Binary Tree.js
Minimum Depth of Binary Tree.js
Minimum Window Substring.js
Minimum Window Substring.js
Most Common Word.js
Most Common Word.js
Move Zeroes.js
Move Zeroes.js
N-queens.js
N-queens.js
Next Interval.js
Next Interval.js
Next Permutation.js
Next Permutation.js
Number of Islands.js
Number of Islands.js
Number of Longest Increasing Subsequence.js
Number of Longest Increasing Subsequence.js
Palindrome Linked List.js
Palindrome Linked List.js
Pascal Triangle.js
Pascal Triangle.js
Path Sum II.js
Path Sum II.js
Path Sum III.js
Path Sum III.js
Path Sum.js
Path Sum.js
Permutations II.js
Permutations II.js
Permutations.js
Permutations.js
Q with 2 Stacks.js
Q with 2 Stacks.js
README.md
README.md
Realization.js
Realization.js
Remove Duplicates from Sorted Array II.js
Remove Duplicates from Sorted Array II.js
Remove Nth Node From End of List.js
Remove Nth Node From End of List.js
RockPaperScissors.js
RockPaperScissors.js
Roman to Num_Num to Roman.js
Roman to Num_Num to Roman.js
Sieve for primes.js
Sieve for primes.js
Sort Colors.js
Sort Colors.js
Spiral Matrix.js
Spiral Matrix.js
Subarray Sum Equals K.js
Subarray Sum Equals K.js
Subdomain Visit Count.js
Subdomain Visit Count.js
Subsets II.js
Subsets II.js
Subsets.js
Subsets.js
Subtree of another tree.js
Subtree of another tree.js
Sum (2).js
Sum (2).js
Sum Closest.js
Sum Closest.js
Sum of Left Leaves.js
Sum of Left Leaves.js
Sum.js
Sum.js
Symmetric Tree.js
Symmetric Tree.js
Task Scheduler.js
Task Scheduler.js
Two Sum.js
Two Sum.js
Two Sums IV - Input is a BST.js
Two Sums IV - Input is a BST.js
Valid Palindrome II.js
Valid Palindrome II.js
Valid Palindrome.js
Valid Palindrome.js
Valid Parentheses.js
Valid Parentheses.js
Valid Parenthesis String.js
Valid Parenthesis String.js
Validate BST.js
Validate BST.js
Vignere-Cipher.js
Vignere-Cipher.js
Word Break.js
Word Break.js
Word Pattern.js
Word Pattern.js
Word Search II.js
Word Search II.js
Word Search.js
Word Search.js
countSticks.js
countSticks.js
mergeSort.js
mergeSort.js
primeschecker.js
primeschecker.js
stackSorting.js
stackSorting.js
View all files
Repository files navigation
README
More
items
algorithms
A couple of algorithms I've perfected or borrowed over the past few years.
About
A couple of algorithms I've perfected or borrowed over the past few years.
Resources
Readme
Activity
Stars
1
star
Watchers
2
watching
Forks
1
fork
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.