Title: Day 17 Q1: Determine if Two Strings Are Close · Issue #399 · SnowScriptWinterOfCode/LeetCode_Q · GitHub
Open Graph Title: Day 17 Q1: Determine if Two Strings Are Close · Issue #399 · SnowScriptWinterOfCode/LeetCode_Q
X Title: Day 17 Q1: Determine if Two Strings Are Close · Issue #399 · SnowScriptWinterOfCode/LeetCode_Q
Description: Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. For example, abcde -> aecdb Operation 2: Transform every occurrence of one existing char...
Open Graph Description: Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. For example, abcde -> aecdb Operation 2: Transfo...
X Description: Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. For example, abcde -> aecdb Operation 2: Tran...
Opengraph URL: https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/399
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Day 17 Q1: Determine if Two Strings Are Close","articleBody":"Two strings are considered close if you can attain one from the other using the following operations:\r\n\r\nOperation 1: Swap any two existing characters.\r\nFor example, abcde -> aecdb\r\nOperation 2: Transform every occurrence of one existing character into another existing character, and do the same with the other character.\r\nFor example, aacabb -> bbcbaa (all a's turn into b's, and all b's turn into a's)\r\nYou can use the operations on either string as many times as necessary.\r\n\r\nGiven two strings, word1 and word2, return true if word1 and word2 are close, and false otherwise.\r\n\r\n \r\n\r\n### Example 1:\r\nInput: word1 = \"abc\", word2 = \"bca\"\r\nOutput: true\r\nExplanation: You can attain word2 from word1 in 2 operations.\r\nApply Operation 1: \"abc\" -> \"acb\"\r\nApply Operation 1: \"acb\" -> \"bca\"\r\n\r\n### Example 2:\r\nInput: word1 = \"a\", word2 = \"aa\"\r\nOutput: false\r\nExplanation: It is impossible to attain word2 from word1, or vice versa, in any number of operations.\r\n\r\n### Example 3:\r\nInput: word1 = \"cabbba\", word2 = \"abbccc\"\r\nOutput: true\r\nExplanation: You can attain word2 from word1 in 3 operations.\r\nApply Operation 1: \"cabbba\" -> \"caabbb\"\r\nApply Operation 2: \"caabbb\" -> \"baaccc\"\r\nApply Operation 2: \"baaccc\" -> \"abbccc\"\r\n \r\n","author":{"url":"https://github.com/prachisinhaa","@type":"Person","name":"prachisinhaa"},"datePublished":"2024-01-14T11:47:22Z","url":"https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/399"}
| 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:844a53d8-a82f-d318-066b-5b73e05d4f79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0C6:3EE8F1:BED701:F85CE3:6AFFE5A0 |
| html-safe-nonce | 2ccb29b2ec46d245e8e6cb7ef05758a96fed6ec2f27e6ed3ded4bf0a418a563e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEM2OjNFRThGMTpCRUQ3MDE6Rjg1Q0UzOjZBRkZFNUEwIiwidmlzaXRvcl9pZCI6IjcwNDMyMTA1MDk5MzU0MzcyMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c0e64f894592899a57177435a90bd10274d0de7af767aadc01233bd088ba2b7 |
| hovercard-subject-tag | issue:2080695294 |
| 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/399/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7922c87d90104b58de1a52a095399d477bed85a6a91a767f44c385a0be345a4e/SnowScriptWinterOfCode/LeetCode_Q/issues/399 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7922c87d90104b58de1a52a095399d477bed85a6a91a767f44c385a0be345a4e/SnowScriptWinterOfCode/LeetCode_Q/issues/399 |
| og:image:alt | Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. For example, abcde -> aecdb Operation 2: Transfo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prachisinhaa |
| 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