René's URL Explorer Experiment


Title: remove unwanted extra interation of loop and saving data in queue in 6_Queue/Exercise/binary_numbers.py · Issue #57 · codebasics/data-structures-algorithms-python · GitHub

Open Graph Title: remove unwanted extra interation of loop and saving data in queue in 6_Queue/Exercise/binary_numbers.py · Issue #57 · codebasics/data-structures-algorithms-python

X Title: remove unwanted extra interation of loop and saving data in queue in 6_Queue/Exercise/binary_numbers.py · Issue #57 · codebasics/data-structures-algorithms-python

Description: https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.py Issue: def produce_binary_numbers(n): numbers_queue = Queue() numbers_queue.enqueue("1") for i in range(n): fr...

Open Graph Description: https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.py Issue: def produce_binary_numbers(n): numbers_queue = Queue() numbers_...

X Description: https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.py Issue: def produce_binary_numbers(n): numbers_queue = Queue() numbers_...

Opengraph URL: https://github.com/codebasics/data-structures-algorithms-python/issues/57

X: @github

direct link

Domain: redirect.github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"remove unwanted extra interation of loop and saving data in queue in 6_Queue/Exercise/binary_numbers.py","articleBody":"https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.py\r\n\r\n**Issue:**\r\n\r\n```\r\ndef produce_binary_numbers(n):\r\n    numbers_queue = Queue()\r\n    numbers_queue.enqueue(\"1\")\r\n\r\n    for i in range(n):\r\n        front = numbers_queue.front()\r\n        print(\"   \", front)\r\n        numbers_queue.enqueue(front + \"0\")\r\n        numbers_queue.enqueue(front + \"1\")\r\n\r\n        numbers_queue.dequeue()\r\n```\r\n\r\n**Proposed below:**\r\n\r\n```\r\ndef produce_binary_numbers(n):\r\n    numbers_queue = Queue()\r\n    numbers_queue.enqueue(\"1\")\r\n    i = 0\r\n    while i \u003c n//2 and not numbers_queue.is_empty():\r\n        i+=1\r\n        front = numbers_queue.dequeue()\r\n        print(front)\r\n        numbers_queue.enqueue(front + \"0\")\r\n        numbers_queue.enqueue(front + \"1\")\r\n        \r\n    while not numbers_queue.is_empty() and i\u003cn:\r\n        print(numbers_queue.dequeue())\r\n        i+=1\r\n```","author":{"url":"https://github.com/udipta","@type":"Person","name":"udipta"},"datePublished":"2022-05-30T18:01:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/57/data-structures-algorithms-python/issues/57"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6f55be11-4a31-4dac-fa3b-b746ca443ed7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8144:2BBCB0:105F610:162742F:696ACE59
html-safe-noncebbfbbaab65f1d63b830f74b43af36c4e4c5b0c458ae029c86a13758b0eaa1e8c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTQ0OjJCQkNCMDoxMDVGNjEwOjE2Mjc0MkY6Njk2QUNFNTkiLCJ2aXNpdG9yX2lkIjoiMjUyODExMjIyODU4OTgxNzQzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacadaca76679525fa6daab9570dc437c971efcb1fabb603a23f10ab4003f4ff5d7
hovercard-subject-tagissue:1253007759
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codebasics/data-structures-algorithms-python/57/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6385d2504e77ea5923e4ea1fd07270bf5050f40b5d4c0c4ea4c3f0009136a466/codebasics/data-structures-algorithms-python/issues/57
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6385d2504e77ea5923e4ea1fd07270bf5050f40b5d4c0c4ea4c3f0009136a466/codebasics/data-structures-algorithms-python/issues/57
og:image:althttps://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.py Issue: def produce_binary_numbers(n): numbers_queue = Queue() numbers_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameudipta
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
turbo-cache-controlno-preview
go-importgithub.com/codebasics/data-structures-algorithms-python git https://github.com/codebasics/data-structures-algorithms-python.git
octolytics-dimension-user_id16063416
octolytics-dimension-user_logincodebasics
octolytics-dimension-repository_id299539326
octolytics-dimension-repository_nwocodebasics/data-structures-algorithms-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id299539326
octolytics-dimension-repository_network_root_nwocodebasics/data-structures-algorithms-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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/codebasics/data-structures-algorithms-python/issues/57#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodebasics%2Fdata-structures-algorithms-python%2Fissues%2F57
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodebasics%2Fdata-structures-algorithms-python%2Fissues%2F57
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=codebasics%2Fdata-structures-algorithms-python
Reloadhttps://redirect.github.com/codebasics/data-structures-algorithms-python/issues/57
Reloadhttps://redirect.github.com/codebasics/data-structures-algorithms-python/issues/57
Reloadhttps://redirect.github.com/codebasics/data-structures-algorithms-python/issues/57
codebasics https://redirect.github.com/codebasics
data-structures-algorithms-pythonhttps://redirect.github.com/codebasics/data-structures-algorithms-python
Notifications https://redirect.github.com/login?return_to=%2Fcodebasics%2Fdata-structures-algorithms-python
Fork 1.6k https://redirect.github.com/login?return_to=%2Fcodebasics%2Fdata-structures-algorithms-python
Star 1.4k https://redirect.github.com/login?return_to=%2Fcodebasics%2Fdata-structures-algorithms-python
Code https://redirect.github.com/codebasics/data-structures-algorithms-python
Issues 20 https://redirect.github.com/codebasics/data-structures-algorithms-python/issues
Pull requests 40 https://redirect.github.com/codebasics/data-structures-algorithms-python/pulls
Actions https://redirect.github.com/codebasics/data-structures-algorithms-python/actions
Projects 0 https://redirect.github.com/codebasics/data-structures-algorithms-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://redirect.github.com/codebasics/data-structures-algorithms-python/security
Please reload this pagehttps://redirect.github.com/codebasics/data-structures-algorithms-python/issues/57
Insights https://redirect.github.com/codebasics/data-structures-algorithms-python/pulse
Code https://redirect.github.com/codebasics/data-structures-algorithms-python
Issues https://redirect.github.com/codebasics/data-structures-algorithms-python/issues
Pull requests https://redirect.github.com/codebasics/data-structures-algorithms-python/pulls
Actions https://redirect.github.com/codebasics/data-structures-algorithms-python/actions
Projects https://redirect.github.com/codebasics/data-structures-algorithms-python/projects
Security https://redirect.github.com/codebasics/data-structures-algorithms-python/security
Insights https://redirect.github.com/codebasics/data-structures-algorithms-python/pulse
New issuehttps://redirect.github.com/login?return_to=https://github.com/codebasics/data-structures-algorithms-python/issues/57
New issuehttps://redirect.github.com/login?return_to=https://github.com/codebasics/data-structures-algorithms-python/issues/57
remove unwanted extra interation of loop and saving data in queue in 6_Queue/Exercise/binary_numbers.pyhttps://redirect.github.com/codebasics/data-structures-algorithms-python/issues/57#top
https://github.com/udipta
https://github.com/udipta
udiptahttps://github.com/udipta
on May 30, 2022https://github.com/codebasics/data-structures-algorithms-python/issues/57#issue-1253007759
https://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.pyhttps://github.com/codebasics/data-structures-algorithms-python/blob/master/data_structures/6_Queue/Exercise/binary_numbers.py
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.