Title: Day-19 q1: Find Players With Zero or One Losses · Issue #415 · SnowScriptWinterOfCode/LeetCode_Q · GitHub
Open Graph Title: Day-19 q1: Find Players With Zero or One Losses · Issue #415 · SnowScriptWinterOfCode/LeetCode_Q
X Title: Day-19 q1: Find Players With Zero or One Losses · Issue #415 · SnowScriptWinterOfCode/LeetCode_Q
Description: Find Players With Zero or One Losses You are given an integer array matches where matches[i] = [winneri, loseri] indicates that the player winneri defeated player loseri in a match. Return a list answer of size 2 where: answer[0] is a li...
Open Graph Description: Find Players With Zero or One Losses You are given an integer array matches where matches[i] = [winneri, loseri] indicates that the player winneri defeated player loseri in a match. Return a list a...
X Description: Find Players With Zero or One Losses You are given an integer array matches where matches[i] = [winneri, loseri] indicates that the player winneri defeated player loseri in a match. Return a list a...
Opengraph URL: https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/415
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Day-19 q1: Find Players With Zero or One Losses","articleBody":"# Find Players With Zero or One Losses\r\n\r\nYou are given an integer array `matches` where `matches[i] = [winneri, loseri]` indicates that the player `winneri` defeated player `loseri` in a match.\r\n\r\nReturn a list `answer` of size 2 where:\r\n\r\n- `answer[0]` is a list of all players that have not lost any matches.\r\n- `answer[1]` is a list of all players that have lost exactly one match.\r\n\r\nThe values in the two lists should be returned in increasing order.\r\n\r\n**Note:**\r\n\r\n- You should only consider the players that have played at least one match.\r\n- The test cases will be generated such that no two matches will have the same outcome.\r\n\r\n## Example 1:\r\n\r\n`Input`: matches = [[1,3],[2,3],[3,6],[5,6],[5,7],[4,5],[4,8],[4,9],[10,4],[10,9]] \r\n`Output`: [[1,2,10],[4,5,7,8]] \r\n`Explanation`: \r\nPlayers 1, 2, and 10 have not lost any matches. \r\nPlayers 4, 5, 7, and 8 each have lost one match. \r\nPlayers 3, 6, and 9 each have lost two matches. \r\nThus, answer[0] = [1,2,10] and answer[1] = [4,5,7,8]. \r\n\r\n\r\n## Example 2:\r\n`Input`: matches = [[2,3],[1,3],[5,4],[6,4]] \r\n`Output`: [[1,2,5,6],[]] \r\n`Explanation`: \r\nPlayers 1, 2, 5, and 6 have not lost any matches. \r\nPlayers 3 and 4 each have lost two matches. \r\nThus, answer[0] = [1,2,5,6] and answer[1] = []. \r\n\r\n\r\n## Constraints:\r\n\r\n- 1 \u003c= matches.length \u003c= 105 \r\n- matches[i].length == 2 \r\n- 1 \u003c= winneri, loseri \u003c= 105 \r\n- winneri != loseri \r\n- All matches[i] are unique. ","author":{"url":"https://github.com/SonaVarshney","@type":"Person","name":"SonaVarshney"},"datePublished":"2024-01-15T11:10:21Z","url":"https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/415"}
| 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:bc4394ac-8145-4f8a-bec3-386bc3907c3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE66:278022:4B52A7:6175BB:6AFFCE9B |
| html-safe-nonce | e7a73f9c53af3e24633828d4db37a518372385092cc4d6c69cded53fa78d2a7b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTY2OjI3ODAyMjo0QjUyQTc6NjE3NUJCOjZBRkZDRTlCIiwidmlzaXRvcl9pZCI6IjE5NjcyNzQ0NTg1MDY4NDE3NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 779a84f1c3dd9956e7b877fbadf456718278d40c7bbe41f12fc5ff15ca284190 |
| hovercard-subject-tag | issue:2081807352 |
| 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/415/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b065cdc713829e8b2d9ed6ef606bc4315959ca32e95b041a94864429621e274/SnowScriptWinterOfCode/LeetCode_Q/issues/415 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b065cdc713829e8b2d9ed6ef606bc4315959ca32e95b041a94864429621e274/SnowScriptWinterOfCode/LeetCode_Q/issues/415 |
| og:image:alt | Find Players With Zero or One Losses You are given an integer array matches where matches[i] = [winneri, loseri] indicates that the player winneri defeated player loseri in a match. Return a list a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SonaVarshney |
| 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