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 }}
costadev00
competitive_programming
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
competitive_programming
Public
Notifications
You must be signed in to change notification settings
Fork
1
(
1
)
Star
6
(
6
)
You must be signed in to star a repository
About
"Classics" algorithms that I use in competitions
Topics
algorithms-and-data-structures
competitive-programming
dynamic-programming
graph-theory
optimization-algorithms
Resources
Readme
Activity
Stars
6
stars
Watchers
1
watching
Forks
1
fork
Report repository
main
Branches
Tags
Go to file
Code
Open more actions menu
Latest commit
History
37 Commits
37 Commits
Folders and files
Name
Name
Last commit message
Last commit date
STL
STL
.gitattributes
.gitattributes
.gitignore
.gitignore
2SUM.cpp
2SUM.cpp
Primos_Menores_Que_Uma_Dada_Magnitude.cpp
Primos_Menores_Que_Uma_Dada_Magnitude.cpp
README.md
README.md
Search_O(log n).cpp
Search_O(log n).cpp
algorithms.png
algorithms.png
apagarBit.cpp
apagarBit.cpp
backtracking.cpp
backtracking.cpp
bellman_ford.cpp
bellman_ford.cpp
bfs.cpp
bfs.cpp
binary_search.cpp
binary_search.cpp
bitAtivo.cpp
bitAtivo.cpp
bitwiseAND.cpp
bitwiseAND.cpp
bitwiseNot.cpp
bitwiseNot.cpp
bitwiseOR.cpp
bitwiseOR.cpp
bitwiseXOR.cpp
bitwiseXOR.cpp
bitwise_acenderBit.cpp
bitwise_acenderBit.cpp
bitwise_ehPotenciaDeDois.cpp
bitwise_ehPotenciaDeDois.cpp
bitwise_inverte_bit.cpp
bitwise_inverte_bit.cpp
bitwise_isSubsequence.cpp
bitwise_isSubsequence.cpp
bitwise_itera_mascara_e_submascara.cpp
bitwise_itera_mascara_e_submascara.cpp
bitwise_itera_todas_submascaras.cpp
bitwise_itera_todas_submascaras.cpp
bitwise_leftShift_rightShift.cpp
bitwise_leftShift_rightShift.cpp
charnumber_to_int.cpp
charnumber_to_int.cpp
check_array_sorted.txt
check_array_sorted.txt
coin_problem_dp.cpp
coin_problem_dp.cpp
connected_components.cpp
connected_components.cpp
crivo_de_eratostenas.cpp
crivo_de_eratostenas.cpp
dfs.cpp
dfs.cpp
diameter_dfs.cpp
diameter_dfs.cpp
dijkstra_connected.cpp
dijkstra_connected.cpp
dijkstra_efficient.cpp
dijkstra_efficient.cpp
dijkstra_modified_stp_with_even_vertices.cpp
dijkstra_modified_stp_with_even_vertices.cpp
dijkstra_print_paths.cpp
dijkstra_print_paths.cpp
divisores_de_n.cpp
divisores_de_n.cpp
divisores_todos_os_numeros_no_intervalo.cpp
divisores_todos_os_numeros_no_intervalo.cpp
equacaoDiofantinaComDuasvariaveis.cpp
equacaoDiofantinaComDuasvariaveis.cpp
fastExponation_iterative.cpp
fastExponation_iterative.cpp
fastExponation_recursive.cpp
fastExponation_recursive.cpp
fastMultiplication.cpp
fastMultiplication.cpp
fatoracao_prima_O(sqrt(n)).cpp
fatoracao_prima_O(sqrt(n)).cpp
fatoracao_prima_crivo_eratostenes.cpp
fatoracao_prima_crivo_eratostenes.cpp
fibonacci_dp.cpp
fibonacci_dp.cpp
flood-fill_dfs.cpp
flood-fill_dfs.cpp
flood_fill_bfs.cpp
flood_fill_bfs.cpp
floyd_warshall.cpp
floyd_warshall.cpp
gcd.cpp
gcd.cpp
gcdExtended.cpp
gcdExtended.cpp
inversion_counting.cpp
inversion_counting.cpp
kadane.cpp
kadane.cpp
knpasack_problem.cpp
knpasack_problem.cpp
knpasack_problem_print.cpp
knpasack_problem_print.cpp
kruskal.cpp
kruskal.cpp
lcm.cpp
lcm.cpp
lcs.cpp
lcs.cpp
lcs_print.cpp
lcs_print.cpp
lcs_topdown.cpp
lcs_topdown.cpp
matrix_as_graph.cpp
matrix_as_graph.cpp
max_subarray_sum.cpp
max_subarray_sum.cpp
meet_in_the_middle.cpp
meet_in_the_middle.cpp
menor_fator_primo.cpp
menor_fator_primo.cpp
mergeSort.cpp
mergeSort.cpp
modular_inversion_everyNumber.cpp
modular_inversion_everyNumber.cpp
modular_inversion_fastExponation.cpp
modular_inversion_fastExponation.cpp
modular_inversion_gcdExtended.cpp
modular_inversion_gcdExtended.cpp
negative_cycles.cpp
negative_cycles.cpp
numero_divisores_n.cpp
numero_divisores_n.cpp
optimal_interval.cpp
optimal_interval.cpp
palindrome_counting.cpp
palindrome_counting.cpp
prefix_sum.cpp
prefix_sum.cpp
prefix_sum_array.cpp
prefix_sum_array.cpp
prim.cpp
prim.cpp
primecheck_basic.cpp
primecheck_basic.cpp
primecheck_basic2square.cpp
primecheck_basic2square.cpp
scheduling.cpp
scheduling.cpp
sort_pair_by_second_value.cpp
sort_pair_by_second_value.cpp
subarray_sum_two_pointers.cpp
subarray_sum_two_pointers.cpp
template.cpp
template.cpp
tree_all_longest_path.cpp
tree_all_longest_path.cpp
tree_diameter_dp.cpp
tree_diameter_dp.cpp
tree_transversal.cpp
tree_transversal.cpp
union-find.cpp
union-find.cpp
View all files
Repository files navigation
README
More
items
competitive_programming
"Classics" algorithms that I use in competitions
About
"Classics" algorithms that I use in competitions
Topics
algorithms-and-data-structures
competitive-programming
dynamic-programming
graph-theory
optimization-algorithms
Resources
Readme
Activity
Stars
6
stars
Watchers
1
watching
Forks
1
fork
Report repository
Releases
Packages
Contributors
Languages
You can’t perform that action at this time.