René's URL Explorer Experiment


Title: Solving the `Top k most frequent words` problem using a max-heap by amos-syd · Pull Request #8125 · TheAlgorithms/Python · GitHub

Open Graph Title: Solving the `Top k most frequent words` problem using a max-heap by amos-syd · Pull Request #8125 · TheAlgorithms/Python

X Title: Solving the `Top k most frequent words` problem using a max-heap by amos-syd · Pull Request #8125 · TheAlgorithms/Python

Description: All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.

Open Graph Description: Describe your change: This PR aims to add an algorithm to identify the top k most frequent strings given a provided string list of elements. To do this, the algorithm is using a max-heap implementa...

X Description: Describe your change: This PR aims to add an algorithm to identify the top k most frequent strings given a provided string list of elements. To do this, the algorithm is using a max-heap implementa...

Opengraph URL: https://github.com/TheAlgorithms/Python/pull/8125

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1ad66ada-90b1-e4e4-ad37-def6a219f128
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC5BC:BC9C:E7E96:13CB48:6A57F4FD
html-safe-nonce69ce23cf7a090a95bd3c065c92eaba97d32ae94051c785301e81f3adb8fb16da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUJDOkJDOUM6RTdFOTY6MTNDQjQ4OjZBNTdGNEZEIiwidmlzaXRvcl9pZCI6Ijg0NjY3NDQ1MjA3MzQxNDM3NDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7816f3b207257d9177f736990c03b8d3747c45d1bfc8de97aa395a83b6cd71c1
hovercard-subject-tagpull_request:1232506086
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/TheAlgorithms/Python/8125/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4e1ac67a844dfb45d3065e095b3ca735230e93c5328010e83389c098a532ec36/TheAlgorithms/Python/pull/8125
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e1ac67a844dfb45d3065e095b3ca735230e93c5328010e83389c098a532ec36/TheAlgorithms/Python/pull/8125
og:image:altDescribe your change: This PR aims to add an algorithm to identify the top k most frequent strings given a provided string list of elements. To do this, the algorithm is using a max-heap implementa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameamos-syd
hostnamegithub.com
expected-hostnamegithub.com
None49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121
turbo-cache-controlno-cache
go-importgithub.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63476337
octolytics-dimension-repository_nwoTheAlgorithms/Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63476337
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/pull/8125#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F8125
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F8125
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/pull/8125
Reloadhttps://github.com/TheAlgorithms/Python/pull/8125
Reloadhttps://github.com/TheAlgorithms/Python/pull/8125
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
TheAlgorithms https://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
Notifications https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Fork 50.8k https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Star 223k https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Code https://github.com/TheAlgorithms/Python
Issues 141 https://github.com/TheAlgorithms/Python/issues
Pull requests 875 https://github.com/TheAlgorithms/Python/pulls
Discussions https://github.com/TheAlgorithms/Python/discussions
Actions https://github.com/TheAlgorithms/Python/actions
Projects https://github.com/TheAlgorithms/Python/projects
Wiki https://github.com/TheAlgorithms/Python/wiki
Security and quality 0 https://github.com/TheAlgorithms/Python/security
Insights https://github.com/TheAlgorithms/Python/pulse
Code https://github.com/TheAlgorithms/Python
Issues https://github.com/TheAlgorithms/Python/issues
Pull requests https://github.com/TheAlgorithms/Python/pulls
Discussions https://github.com/TheAlgorithms/Python/discussions
Actions https://github.com/TheAlgorithms/Python/actions
Projects https://github.com/TheAlgorithms/Python/projects
Wiki https://github.com/TheAlgorithms/Python/wiki
Security and quality https://github.com/TheAlgorithms/Python/security
Insights https://github.com/TheAlgorithms/Python/pulse
amos-sydhttps://github.com/amos-syd
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
amos-syd:masterhttps://github.com/amos-syd/Python/tree/master
Conversationhttps://github.com/TheAlgorithms/Python/pull/8125
Commits0 (0)https://github.com/TheAlgorithms/Python/pull/8125/commits
Checkshttps://github.com/TheAlgorithms/Python/pull/8125/checks
Files changedhttps://github.com/TheAlgorithms/Python/pull/8125/files
Solving the Top k most frequent words problem using a max-heaphttps://github.com/TheAlgorithms/Python/pull/8125#top
amos-sydhttps://github.com/amos-syd
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
amos-syd:masterhttps://github.com/amos-syd/Python/tree/master
https://github.com/amos-syd
amos-sydhttps://github.com/amos-syd
Feb 7, 2023https://github.com/TheAlgorithms/Python/pull/8125#issue-1574924316
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
CONTRIBUTING.mdhttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
type hintshttps://docs.python.org/3/library/typing.html
doctestshttps://docs.python.org/3/library/doctest.html
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://github.com/apps/algorithms-keeper
awaiting reviews https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22
enhancement https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement
require descriptive names https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22
require tests https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20tests%22
require type hints https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20type%20hints%22
Feb 7, 2023https://github.com/TheAlgorithms/Python/pull/8125#event-8461562029
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://github.com/apps/algorithms-keeper
Feb 7, 2023 https://github.com/TheAlgorithms/Python/pull/8125#pullrequestreview-1287885501
View reviewed changes https://github.com/TheAlgorithms/Python/pull/8125/files
algorithms-keeperhttps://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/8125#pullrequestreview-1287885501
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Contributing guidelineshttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
Project Euler solution guidelineshttps://github.com/TheAlgorithms/Python/blob/master/project_euler/README.md
Formatted string literals (f-strings)https://docs.python.org/3/tutorial/inputoutput.html#tut-f-strings
Type hintshttps://docs.python.org/3/library/typing.html
doctesthttps://docs.python.org/3/library/doctest.html
unittesthttps://docs.python.org/3/library/unittest.html
pytesthttps://docs.pytest.org/en/stable/
algorithms-keeperhttps://github.com/dhruvmanila/algorithms-keeper
please open an issue about it.https://github.com/dhruvmanila/algorithms-keeper/issues
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
strings/top_k_frequent_words.pyhttps://github.com/TheAlgorithms/Python/pull/8125/files#diff-0a2cf917423e188171eb32b853d9336ca01a60600fa8514aa47b21e21f4167d4
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
strings/top_k_frequent_words.pyhttps://github.com/TheAlgorithms/Python/pull/8125/files#diff-0a2cf917423e188171eb32b853d9336ca01a60600fa8514aa47b21e21f4167d4
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
strings/top_k_frequent_words.pyhttps://github.com/TheAlgorithms/Python/pull/8125/files#diff-0a2cf917423e188171eb32b853d9336ca01a60600fa8514aa47b21e21f4167d4
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
strings/top_k_frequent_words.pyhttps://github.com/TheAlgorithms/Python/pull/8125/files#diff-0a2cf917423e188171eb32b853d9336ca01a60600fa8514aa47b21e21f4167d4
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/amos-syd
amos-sydhttps://github.com/amos-syd
force-pushedhttps://github.com/TheAlgorithms/Python/compare/059a7c01094a6898dc064bbbf53c379b714ef0d9..26815ce7fe7a642b7d5ed069cf76ca5ebe3d6dc0
059a7c0https://github.com/TheAlgorithms/Python/commit/059a7c01094a6898dc064bbbf53c379b714ef0d9
26815cehttps://github.com/TheAlgorithms/Python/commit/26815ce7fe7a642b7d5ed069cf76ca5ebe3d6dc0
Compare https://github.com/TheAlgorithms/Python/compare/059a7c01094a6898dc064bbbf53c379b714ef0d9..26815ce7fe7a642b7d5ed069cf76ca5ebe3d6dc0
February 7, 2023 19:56https://github.com/TheAlgorithms/Python/pull/8125#event-8461639898
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://github.com/apps/algorithms-keeper
require descriptive names https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20descriptive%20names%22
require tests https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20tests%22
require type hints https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22require%20type%20hints%22
Feb 7, 2023https://github.com/TheAlgorithms/Python/pull/8125#event-8461640462
https://github.com/CaedenPH
CaedenPHhttps://github.com/CaedenPH
Feb 7, 2023 https://github.com/TheAlgorithms/Python/pull/8125#pullrequestreview-1287988588
View reviewed changes https://github.com/TheAlgorithms/Python/pull/8125/files
CaedenPHhttps://github.com/CaedenPH
https://github.com/TheAlgorithms/Python/pull/8125#pullrequestreview-1287988588
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/amos-syd
amos-sydhttps://github.com/amos-syd
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#issuecomment-1519089438
@cclausshttps://github.com/cclauss
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/cclauss
cclausshttps://github.com/cclauss
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#issuecomment-1519092556
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/amos-syd
amos-sydhttps://github.com/amos-syd
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#issuecomment-1519095428
https://github.com/python/cpython/blob/3.11/Lib/collections/__init__.py#L608https://github.com/python/cpython/blob/3.11/Lib/collections/__init__.py#L608
https://github.com/python/cpython/blob/3.11/Lib/heapq.py#L523https://github.com/python/cpython/blob/3.11/Lib/heapq.py#L523
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/cclauss
cclausshttps://github.com/cclauss
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#issuecomment-1519106757
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/cclauss
cclausshttps://github.com/cclauss
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#issuecomment-1519114582
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/amos-syd
amos-sydhttps://github.com/amos-syd
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#issuecomment-1519117038
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/apps/algorithms-keeper
algorithms-keeperhttps://github.com/apps/algorithms-keeper
tests are failing https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#event-9075261181
https://github.com/cclauss
cclausshttps://github.com/cclauss
Apr 23, 2023 https://github.com/TheAlgorithms/Python/pull/8125#pullrequestreview-1396955656
View reviewed changes https://github.com/TheAlgorithms/Python/pull/8125/files
cclausshttps://github.com/cclauss
https://github.com/TheAlgorithms/Python/pull/8125#pullrequestreview-1396955656
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/cclauss
cclausshttps://github.com/cclauss
Apr 23, 2023https://github.com/TheAlgorithms/Python/pull/8125#event-9075604202
https://github.com/cclauss
cclausshttps://github.com/cclauss
force-pushedhttps://github.com/TheAlgorithms/Python/compare/c64312747f3be251a1977dafc0239b400faf3db5..11582943a555ae3b6a22938df6d3645b0327562e
c643127https://github.com/TheAlgorithms/Python/commit/c64312747f3be251a1977dafc0239b400faf3db5
1158294https://github.com/TheAlgorithms/Python/commit/11582943a555ae3b6a22938df6d3645b0327562e
Compare https://github.com/TheAlgorithms/Python/compare/c64312747f3be251a1977dafc0239b400faf3db5..11582943a555ae3b6a22938df6d3645b0327562e
April 23, 2023 22:07https://github.com/TheAlgorithms/Python/pull/8125#event-9075604204
https://github.com/cclauss
cclausshttps://github.com/cclauss
Apr 23, 2023 https://github.com/TheAlgorithms/Python/pull/8125#ref-pullrequest-1680197218
Solving the Top k most frequent words problem using a max-heap #8685 https://github.com/TheAlgorithms/Python/pull/8685
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F8125
https://github.com/cclauss
cclauss https://github.com/cclauss
https://github.com/TheAlgorithms/Python/pull/8125/files/c64312747f3be251a1977dafc0239b400faf3db5
https://github.com/CaedenPH
CaedenPH https://github.com/CaedenPH
https://github.com/TheAlgorithms/Python/pull/8125/files/26815ce7fe7a642b7d5ed069cf76ca5ebe3d6dc0
https://github.com/apps/algorithms-keeper
algorithms-keeper[bot] https://github.com/apps/algorithms-keeper
https://github.com/TheAlgorithms/Python/pull/8125/files/059a7c01094a6898dc064bbbf53c379b714ef0d9
awaiting reviews https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22
enhancement https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement
tests are failing https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22tests%20are%20failing%22
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/8125
https://github.com/amos-syd
https://github.com/cclauss
https://github.com/CaedenPH
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.