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 }}
ketkimnaik
/
Algorithms
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
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
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
390 Commits
390 Commits
1002_Find_Common_Characters.cpp
1002_Find_Common_Characters.cpp
1005_Maximize_Sum_Of_Array_After_K_Negations.cpp
1005_Maximize_Sum_Of_Array_After_K_Negations.cpp
1008_Construct_Binary_Search_Tree_from_Preorder_Traversal.cpp
1008_Construct_Binary_Search_Tree_from_Preorder_Traversal.cpp
1016_Binary_String_With_Substrings_Representing_1_To_N.cpp
1016_Binary_String_With_Substrings_Representing_1_To_N.cpp
1022_Sum_of_Root_To_Leaf_Binary_Numbers.cpp
1022_Sum_of_Root_To_Leaf_Binary_Numbers.cpp
1023_Camelcase_Matching.cpp
1023_Camelcase_Matching.cpp
1024_Video_Stitching.cpp
1024_Video_Stitching.cpp
1026_Maximum_Difference_Between_Node_and_Ancestor.cpp
1026_Maximum_Difference_Between_Node_and_Ancestor.cpp
1027_Longest_Arithmetic_Sequence.cpp
1027_Longest_Arithmetic_Sequence.cpp
1029_Two_City_Scheduling.cpp
1029_Two_City_Scheduling.cpp
1038_Binary_Search_Tree_to_Greater_Sum_Tree.cpp
1038_Binary_Search_Tree_to_Greater_Sum_Tree.cpp
1043_Partition_Array_for_Maximum_Sum.cpp
1043_Partition_Array_for_Maximum_Sum.cpp
1048_Longest_String_Chain.cpp
1048_Longest_String_Chain.cpp
1051_Height_Checker.cpp
1051_Height_Checker.cpp
1052_Grumpy_Bookstore_Owner.cpp
1052_Grumpy_Bookstore_Owner.cpp
105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.cpp
105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.cpp
106_Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal.cpp
106_Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal.cpp
1090_Largest_Values_From_Labels.cpp
1090_Largest_Values_From_Labels.cpp
1094_Car_Pooling.cpp
1094_Car_Pooling.cpp
109_Convert_Sorted_List_to_Binary_Search_Tree.cpp
109_Convert_Sorted_List_to_Binary_Search_Tree.cpp
10_Regular_Expression_Matching.py
10_Regular_Expression_Matching.py
1104_Path_In_Zigzag_Labelled_Binary_Tree.cpp
1104_Path_In_Zigzag_Labelled_Binary_Tree.cpp
1105_Filling_Bookcase_Shelves.cpp
1105_Filling_Bookcase_Shelves.cpp
1108_Defanging_an_IP_Address.cpp
1108_Defanging_an_IP_Address.cpp
110_Balanced_Binary_Tree.cpp
110_Balanced_Binary_Tree.cpp
1110_Delete_Nodes_And_Return_Forest.cpp
1110_Delete_Nodes_And_Return_Forest.cpp
1122_Relative_Sort_Array.cpp
1122_Relative_Sort_Array.cpp
1123_Lowest_Common_Ancestor_of_Deepest_Leaves.cpp
1123_Lowest_Common_Ancestor_of_Deepest_Leaves.cpp
112_Path_Sum.cpp
112_Path_Sum.cpp
1137_N-th_Tribonacci_Number.cpp
1137_N-th_Tribonacci_Number.cpp
113_Path_Sum_II.cpp
113_Path_Sum_II.cpp
1143_Longest_Common_Subsequence.cpp
1143_Longest_Common_Subsequence.cpp
114_Flatten_Binary_Tree_to_Linked_List.cpp
114_Flatten_Binary_Tree_to_Linked_List.cpp
1155_Number_of_Dice_Rolls_With_Target_Sum.cpp
1155_Number_of_Dice_Rolls_With_Target_Sum.cpp
1190_Reverse_Substrings_Between_Each_Pair_of_Parentheses.cpp
1190_Reverse_Substrings_Between_Each_Pair_of_Parentheses.cpp
11_Container_With_Most_Water.py
11_Container_With_Most_Water.py
1207_Unique_Number_of_Occurrences.cpp
1207_Unique_Number_of_Occurrences.cpp
1209_Remove_All_Adjacent_Duplicates_in_String_II.cpp
1209_Remove_All_Adjacent_Duplicates_in_String_II.cpp
120_Triangle.cpp
120_Triangle.cpp
1217_Play_with_Chips.cpp
1217_Play_with_Chips.cpp
121_Best_Time_to_Buy_and_Sell_Stock.cpp
121_Best_Time_to_Buy_and_Sell_Stock.cpp
1221_Split_a_String_in_Balanced_Strings.cpp
1221_Split_a_String_in_Balanced_Strings.cpp
1222_Queens_That_Can_Attack_the_King.cpp
1222_Queens_That_Can_Attack_the_King.cpp
1227_Airplane_Seat_Assignment_Probability.cpp
1227_Airplane_Seat_Assignment_Probability.cpp
122_Best_Time_to_Buy_and_Sell_Stock_II.cpp
122_Best_Time_to_Buy_and_Sell_Stock_II.cpp
1232_Check_If_It_Is_a_Straight_Line.cpp
1232_Check_If_It_Is_a_Straight_Line.cpp
123_Best_Time_to_Buy_and_Sell_Stock_III.cpp
123_Best_Time_to_Buy_and_Sell_Stock_III.cpp
1247_Minimum_Swaps_to_Make_Strings_Equal.cpp
1247_Minimum_Swaps_to_Make_Strings_Equal.cpp
1249_Minimum_Remove_to_Make_Valid_Parentheses.cpp
1249_Minimum_Remove_to_Make_Valid_Parentheses.cpp
1252_Cells_with_Odd_Values_in_a_Matrix.cpp
1252_Cells_with_Odd_Values_in_a_Matrix.cpp
1254_Number_of_Closed_Islands.cpp
1254_Number_of_Closed_Islands.cpp
1261_Find_Elements_in_a_Contaminated_Binary_Tree.cpp
1261_Find_Elements_in_a_Contaminated_Binary_Tree.cpp
1266_Minimum_Time_Visiting_All_Points.cpp
1266_Minimum_Time_Visiting_All_Points.cpp
1267_Count_Servers_that_Communicate.cpp
1267_Count_Servers_that_Communicate.cpp
1268_Search_Suggestions_System.cpp
1268_Search_Suggestions_System.cpp
127_Word_Ladder.cpp
127_Word_Ladder.cpp
1281_Subtract_the_Product_and_Sum_of_Digits_of_an_Integer.cpp
1281_Subtract_the_Product_and_Sum_of_Digits_of_an_Integer.cpp
1282_Group_the_People_Given_the_Group_Size_They_Belong_To.cpp
1282_Group_the_People_Given_the_Group_Size_They_Belong_To.cpp
1295_Find_Numbers_with_Even_Number_of_Digits.cpp
1295_Find_Numbers_with_Even_Number_of_Digits.cpp
1299_Replace_Elements_with_Greatest_Element_on_Right_Side.cpp
1299_Replace_Elements_with_Greatest_Element_on_Right_Side.cpp
129_Sum_Root_to_Leaf_Numbers.cpp
129_Sum_Root_to_Leaf_Numbers.cpp
12_IntegertoRoman.py
12_IntegertoRoman.py
1304_Find_N_Unique_Integers_Sum_up_to_Zero.cpp
1304_Find_N_Unique_Integers_Sum_up_to_Zero.cpp
1305_All_Elements_in_Two_Binary_Search_Trees.cpp
1305_All_Elements_in_Two_Binary_Search_Trees.cpp
1309_Decrypt_String_from_Alphabet_to_Integer_Mapping.cpp
1309_Decrypt_String_from_Alphabet_to_Integer_Mapping.cpp
130_Surrounded_Regions.cpp
130_Surrounded_Regions.cpp
1313_Decompress_Run-Length_Encoded_List.cpp
1313_Decompress_Run-Length_Encoded_List.cpp
1319_Number_of_Operations_to_Make_Network_Connected.cpp
1319_Number_of_Operations_to_Make_Network_Connected.cpp
131_Palindrome_Partitioning.cpp
131_Palindrome_Partitioning.cpp
1325_Delete_Leaves_With_a_Given_Value.cpp
1325_Delete_Leaves_With_a_Given_Value.cpp
1329_Sort_the_Matrix_Diagonally.cpp
1329_Sort_the_Matrix_Diagonally.cpp
1334_Find_the_City_With_the_Smallest_Number_of_Neighbors_at_a_Threshold_Distance.cpp
1334_Find_the_City_With_the_Smallest_Number_of_Neighbors_at_a_Threshold_Distance.cpp
1338_Reduce_Array_Size_to_The_Half.cpp
1338_Reduce_Array_Size_to_The_Half.cpp
1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.cpp
1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.cpp
1344_Angle_Between_Hands_of_a_Clock.cpp
1344_Angle_Between_Hands_of_a_Clock.cpp
1347_Minimum_Number_of_Steps_to_Make_Two_Strings_Anagram.cpp
1347_Minimum_Number_of_Steps_to_Make_Two_Strings_Anagram.cpp
134_Gas_Station.cpp
134_Gas_Station.cpp
1351_Count_Negative_Numbersin_a_Sorted_Matrix.cpp
1351_Count_Negative_Numbersin_a_Sorted_Matrix.cpp
1353_Maximum_Number_of_Events_That_Can_Be_Attended.cpp
1353_Maximum_Number_of_Events_That_Can_Be_Attended.cpp
1356_Sort_Integers_by_The_Number_of_1_Bits.cpp
1356_Sort_Integers_by_The_Number_of_1_Bits.cpp
1361_Validate_Binary_Tree_Nodes.cpp
1361_Validate_Binary_Tree_Nodes.cpp
1365_How_Many_Numbers_Are_Smaller_Than_the_Current_Number.cpp
1365_How_Many_Numbers_Are_Smaller_Than_the_Current_Number.cpp
1370_Increasing_Decreasing_String.cpp
1370_Increasing_Decreasing_String.cpp
1372_Longest_ZigZag_Path_in_a_Binary_Tree.cpp
1372_Longest_ZigZag_Path_in_a_Binary_Tree.cpp
1374_Generate_a_String_With_Characters_That_Have_Odd_Counts.cpp
1374_Generate_a_String_With_Characters_That_Have_Odd_Counts.cpp
1379_Find_a_Corresponding_Node_of_a_Binary_Tree_in_a_Clone_of_That_Tree.cpp
1379_Find_a_Corresponding_Node_of_a_Binary_Tree_in_a_Clone_of_That_Tree.cpp
137_Single_Number_II.cpp
137_Single_Number_II.cpp
1381_Design_a_Stack_With_Increment_Operation.cpp
1381_Design_a_Stack_With_Increment_Operation.cpp
1387_Sort_Integers_by_The_Power_Value.cpp
1387_Sort_Integers_by_The_Power_Value.cpp
1389_Create_Target_Array_in_the_Given_Order.cpp
1389_Create_Target_Array_in_the_Given_Order.cpp
1395_Count_Number_of_Teams.cpp
1395_Count_Number_of_Teams.cpp
139_Word_Break.cpp
139_Word_Break.cpp
13_RomantoInteger.py
13_RomantoInteger.py
1403_Minimum_Subsequence_in_Non-Increasing_Order.cpp
1403_Minimum_Subsequence_in_Non-Increasing_Order.cpp
1409_Queries_on_a_Permutation_With_Key.cpp
1409_Queries_on_a_Permutation_With_Key.cpp
1414_Find_the_Minimum_Number_of_Fibonacci_Numbers_Whose_Sum_Is_K.cpp
1414_Find_the_Minimum_Number_of_Fibonacci_Numbers_Whose_Sum_Is_K.cpp
1431_Kids_With_the_Greatest_Number_of_Candies.cpp
1431_Kids_With_the_Greatest_Number_of_Candies.cpp
1433_Check_If_a_String_Can_Break_Another_String.cpp
1433_Check_If_a_String_Can_Break_Another_String.cpp
1436_Destination_City.cpp
1436_Destination_City.cpp
1441_Build_an_Array_With_Stack_Operations.cpp
1441_Build_an_Array_With_Stack_Operations.cpp
View all files
About
Algorithms Programming Practice
Activity
Stars
0
stars
Watchers
1
watching
Forks
0
forks
Report repository
Releases
Packages
Used by
Contributors
Languages
You can’t perform that action at this time.