Title: Day30 q2: Find Smallest Letter Greater Than Target · Issue #619 · SnowScriptWinterOfCode/LeetCode_Q · GitHub
Open Graph Title: Day30 q2: Find Smallest Letter Greater Than Target · Issue #619 · SnowScriptWinterOfCode/LeetCode_Q
X Title: Day30 q2: Find Smallest Letter Greater Than Target · Issue #619 · SnowScriptWinterOfCode/LeetCode_Q
Description: You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters. Return the smallest character in letters that is lexicographically great...
Open Graph Description: You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters. Return the smallest character in...
X Description: You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters. Return the smallest character in...
Opengraph URL: https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/619
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Day30 q2: Find Smallest Letter Greater Than Target","articleBody":"You are given an array of characters `letters` that is sorted in non-decreasing order, and a character `target`. There are at least two different characters in `letters`.\r\n\r\nReturn the smallest character in letters that is lexicographically greater than `target`. If such a character does not exist, return the first character in `letters`.\r\n \r\n\r\n### **_Example 1:_**\r\n\r\n**Input**: `letters` = [\"c\",\"f\",\"j\"], `target` = \"a\"\r\n**Output**: \"c\"\r\n**Explanation**: The smallest character that is lexicographically greater than 'a' in `letters` is 'c'.\r\n\r\n### **_Example 2:_**\r\n\r\n**Input**: `letters` = [\"c\",\"f\",\"j\"], `target` = \"c\"\r\n**Output**: \"f\"\r\n**Explanation**: The smallest character that is lexicographically greater than 'c' in `letters` is 'f'.\r\n\r\n### **_Example 3:_**\r\n\r\n**Input**: `letters` = [\"x\",\"x\",\"y\",\"y\"], `target` = \"z\"\r\n**Output**: \"x\"\r\n**Explanation**: There are no characters in `letters` that is lexicographically greater than 'z' so we return `letters[0]`.\r\n \r\n\r\n### **_Constraints:_**\r\n\r\n- 2 \u003c= `letters`.length \u003c= 10^4\r\n- `letters[i]` is a lowercase English letter.\r\n- `letters` is sorted in non-decreasing order.\r\n- `letters` contains at least two different characters.\r\n- `target` is a lowercase English letter.\r\n\r\n### Problem Link\r\nhttps://leetcode.com/problems/find-smallest-letter-greater-than-target/","author":{"url":"https://github.com/sumiranverma","@type":"Person","name":"sumiranverma"},"datePublished":"2024-01-27T16:48:32Z","url":"https://github.com/SnowScriptWinterOfCode/LeetCode_Q/issues/619"}
| 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:56e2cec0-ea2a-1df9-df14-3fb9dc428568 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8762:BACA4:2D72A16:3C1DB72:6B002483 |
| html-safe-nonce | 415a1b4826e87d638436a6b8c13e2462428db097334e8fbcbf3a68d999511ccd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzYyOkJBQ0E0OjJENzJBMTY6M0MxREI3Mjo2QjAwMjQ4MyIsInZpc2l0b3JfaWQiOiI2MzE1NTYxMjU2NjM1ODY4MjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 95c2f7bddf9591809c2afbf29a52ecffd43d496df60dfcae6b480466d6370ad8 |
| hovercard-subject-tag | issue:2103670119 |
| 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/619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f44808f3bc8d31e6c73a2578ab2307274251fed489516ebbcade0fd233336d4/SnowScriptWinterOfCode/LeetCode_Q/issues/619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f44808f3bc8d31e6c73a2578ab2307274251fed489516ebbcade0fd233336d4/SnowScriptWinterOfCode/LeetCode_Q/issues/619 |
| og:image:alt | You are given an array of characters letters that is sorted in non-decreasing order, and a character target. There are at least two different characters in letters. Return the smallest character in... |
| 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 | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width