Title: Day26 q2: Score of Parentheses · Issue #473 · SnowScriptWinterOfCode/LeetCode_Q · GitHub
Open Graph Title: Day26 q2: Score of Parentheses · Issue #473 · SnowScriptWinterOfCode/LeetCode_Q
X Title: Day26 q2: Score of Parentheses · Issue #473 · SnowScriptWinterOfCode/LeetCode_Q
Description: Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: "()" has score 1. AB has score A + B, where A and B are balanced parentheses strings. (A) h...
Open Graph Description: Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: "()" has score 1. AB has score A + B, where A and B...
X Description: Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: "()" has score 1. AB has score A + B, whe...
Opengraph URL: https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/473
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Day26 q2: Score of Parentheses","articleBody":"Given a balanced parentheses string `s`, return the **_score_** of the string.\r\n\r\nThe **_score_** of a balanced parentheses string is based on the following rule:\r\n\r\n- `\"()\"` has score `1`.\r\n- `AB` has score `A + B`, where `A` and `B` are balanced parentheses strings.\r\n- `(A)` has score `2 * A`, where `A` is a balanced parentheses string.\r\n\r\n### **_Example 1:_**\r\n\r\n**Input**: s = `\"()\"`\r\n**Output**: 1\r\n\r\n### **_Example 2:_**\r\n\r\n**Input**: s = `\"(())\"`\r\n**Output**: 2\r\n\r\n### **_Example 3:_**\r\n\r\n**Input**: s = `\"()()\"`\r\n**Output**: 2\r\n \r\n\r\n### Constraints:\r\n\r\n- 2 \u003c= `s.length` \u003c= 50\r\n- `s` consists of only `'('` and `')'`.\r\n- `s` is a balanced parentheses string.\r\n\r\n### problem link\r\nhttps://leetcode.com/problems/score-of-parentheses/","author":{"url":"https://github.com/sumiranverma","@type":"Person","name":"sumiranverma"},"datePublished":"2024-01-22T13:17:50Z","url":"https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/473"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f7d1d3af-81e3-f79d-5f9f-1868e5cb7b6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7C8:1A1C04:15E882B:1D8EBF0:6AFFE530 |
| html-safe-nonce | e057a41351dc762d4b0067aeb0eb47b4be67c96e72fbe256030ab31529ed1aa2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0M4OjFBMUMwNDoxNUU4ODJCOjFEOEVCRjA6NkFGRkU1MzAiLCJ2aXNpdG9yX2lkIjoiOTA0NDE4MTQ1NDY5MDQ0NDU5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c4749f877d0a00691c6828c8ab7c19c1b009aff5f3418205252bdde295961f3 |
| hovercard-subject-tag | issue:2093902694 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SnowScriptWinterOfCode/LeetCode_Q/473/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0300dfe1e3018cd92aa7620a570a6d80895d6609b66182024e7e23cebc16d58a/SnowScriptWinterOfCode/LeetCode_Q/issues/473 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0300dfe1e3018cd92aa7620a570a6d80895d6609b66182024e7e23cebc16d58a/SnowScriptWinterOfCode/LeetCode_Q/issues/473 |
| og:image:alt | Given a balanced parentheses string s, return the score of the string. The score of a balanced parentheses string is based on the following rule: "()" has score 1. AB has score A + B, where A and B... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sumiranverma |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/SnowScriptWinterOfCode/LeetCode_Q git https://github.com/SnowScriptWinterOfCode/LeetCode_Q.git |
| octolytics-dimension-user_id | 154897622 |
| octolytics-dimension-user_login | SnowScriptWinterOfCode |
| octolytics-dimension-repository_id | 735947375 |
| octolytics-dimension-repository_nwo | SnowScriptWinterOfCode/LeetCode_Q |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 735947375 |
| octolytics-dimension-repository_network_root_nwo | SnowScriptWinterOfCode/LeetCode_Q |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width