René's URL Explorer Experiment


Title: errors in balanced_parentheses.py · Issue #620 · TheAlgorithms/Python · GitHub

Open Graph Title: errors in balanced_parentheses.py · Issue #620 · TheAlgorithms/Python

X Title: errors in balanced_parentheses.py · Issue #620 · TheAlgorithms/Python

Description: Python/data_structures/stacks/balanced_parentheses.py Lines 13 to 17 in 6a95bf9 stack.push(parenthesis) elif parenthesis == ')': stack.pop() return not stack.is_empty() Line 16 returns wrong result due to not Line 15 can cause error for ...

Open Graph Description: Python/data_structures/stacks/balanced_parentheses.py Lines 13 to 17 in 6a95bf9 stack.push(parenthesis) elif parenthesis == ')': stack.pop() return not stack.is_empty() Line 16 returns wrong result...

X Description: Python/data_structures/stacks/balanced_parentheses.py Lines 13 to 17 in 6a95bf9 stack.push(parenthesis) elif parenthesis == ')': stack.pop() return not stack.is_empty() Line 16 returns wron...

Opengraph URL: https://github.com/TheAlgorithms/Python/issues/620

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"errors in balanced_parentheses.py","articleBody":"https://github.com/TheAlgorithms/Python/blob/6a95bf9ad8090a1280abf76752a52ab9ee2420b7/data_structures/stacks/balanced_parentheses.py#L13-L17\r\n\r\n`Line 16` returns wrong result due to `not`\r\n\r\n`Line 15` can cause error for inputs like **))**. before calling _pop_ it should be checked if stack is empty.\r\n\r\nhttps://github.com/TheAlgorithms/Python/blob/6a95bf9ad8090a1280abf76752a52ab9ee2420b7/data_structures/stacks/balanced_parentheses.py#L3\r\n\r\nthere is no module named **.Stack**. it should be\r\n _from **s**tack import Stack_","author":{"url":"https://github.com/ashwek","@type":"Person","name":"ashwek"},"datePublished":"2018-11-30T17:44:05Z","url":"https://github.com/TheAlgorithms/Python/issues/620"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d2e96781-55e2-c047-8b34-c7c542fa5ebb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA2C4:29C55F:1E506AD:28F713A:6AFB9EFB
html-safe-noncee6f3a0b4bb3289bf48ef5971761cac280476e079f248e1d449720c2c95d7c0cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkM0OjI5QzU1RjoxRTUwNkFEOjI4RjcxM0E6NkFGQjlFRkIiLCJ2aXNpdG9yX2lkIjoiMzk5NjMxMzI2Nzk0NDAwNTM3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccd04b57a4636fec7d9d8482c09a2c5f176a103cc5ba17739c36434a091955d5d
hovercard-subject-tagissue:386285924
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/TheAlgorithms/Python/620/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bc148ca4f91ee69ff4be4c28dbf9bd05cc6bc9f094db2f266c360f4cb8b2ed74/TheAlgorithms/Python/issues/620
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bc148ca4f91ee69ff4be4c28dbf9bd05cc6bc9f094db2f266c360f4cb8b2ed74/TheAlgorithms/Python/issues/620
og:image:altPython/data_structures/stacks/balanced_parentheses.py Lines 13 to 17 in 6a95bf9 stack.push(parenthesis) elif parenthesis == ')': stack.pop() return not stack.is_empty() Line 16 returns wrong result...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameashwek
hostnamegithub.com
expected-hostnamegithub.com
None3cefd19a936819d82cfb5279d50fb56fe79cb9ec30f0f807e04e89b0c58ffae1
turbo-cache-controlno-preview
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
release606800bdb1b81d125fc845bdcc262c9fe063fc8f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/issues/620#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fissues%2F620
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fissues%2F620
Sign uphttps://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=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/issues/620
Reloadhttps://github.com/TheAlgorithms/Python/issues/620
Reloadhttps://github.com/TheAlgorithms/Python/issues/620
TheAlgorithmshttps://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Codehttps://github.com/TheAlgorithms/Python
Issues14 (14)https://github.com/TheAlgorithms/Python/issues
Pull requests104 (104)https://github.com/TheAlgorithms/Python/pulls
Discussionshttps://github.com/TheAlgorithms/Python/discussions
Actionshttps://github.com/TheAlgorithms/Python/actions
Projectshttps://github.com/TheAlgorithms/Python/projects
Wikihttps://github.com/TheAlgorithms/Python/wiki
Security and qualityhttps://github.com/TheAlgorithms/Python/security
Insightshttps://github.com/TheAlgorithms/Python/pulse
https://github.com/TheAlgorithms/Python
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Python/issues/620
New issuehttps://github.com/login?return_to=https://github.com/TheAlgorithms/Python/issues/620
errors in balanced_parentheses.pyhttps://github.com/TheAlgorithms/Python/issues/620#top
https://github.com/ashwek
ashwekhttps://github.com/ashwek
on Nov 30, 2018https://github.com/TheAlgorithms/Python/issues/620#issue-386285924
Python/data_structures/stacks/balanced_parentheses.pyhttps://github.com/TheAlgorithms/Python/blob/6a95bf9ad8090a1280abf76752a52ab9ee2420b7/data_structures/stacks/balanced_parentheses.py#L13-L17
6a95bf9https://github.com/TheAlgorithms/Python/commit/6a95bf9ad8090a1280abf76752a52ab9ee2420b7
Python/data_structures/stacks/balanced_parentheses.pyhttps://github.com/TheAlgorithms/Python/blob/6a95bf9ad8090a1280abf76752a52ab9ee2420b7/data_structures/stacks/balanced_parentheses.py#L3
6a95bf9https://github.com/TheAlgorithms/Python/commit/6a95bf9ad8090a1280abf76752a52ab9ee2420b7
https://github.com/mikaelsouza
mikaelsouzahttps://github.com/mikaelsouza
on Dec 17, 2018https://github.com/TheAlgorithms/Python/issues/620#issuecomment-447873423
harshildarjihttps://github.com/harshildarji
completedhttps://github.com/TheAlgorithms/Python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#664https://github.com/TheAlgorithms/Python/pull/664
on Dec 17, 2018https://github.com/TheAlgorithms/Python/issues/620#event-2030591991
Sign up for freehttps://github.com/signup?return_to=https://github.com/TheAlgorithms/Python/issues/620
Sign in to commenthttps://github.com/login?return_to=https://github.com/TheAlgorithms/Python/issues/620
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.