tsunejui / leetcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leetcode

C4_Elements

Folder Structure

with the following example:

- [easy] 1.Two Sum
  - solution.js
  - solution.go
  - solution.php (optional)
  - james.js
  - rex.go
  - henry.go
  - README.md

README.md

URL: https://leetcode.com/explore/challenge/card/september-leetcoding-challenge-2021/639/week-4-september-22nd-september-28th/3985/

Given a palindromic string of lowercase English letters palindrome, replace exactly one character with any lowercase English letter so that the resulting string is not a palindrome and that it is the lexicographically smallest one possible.

Return the resulting string. If there is no way to replace a character to make it not a palindrome, return an empty string.

A string a is lexicographically smaller than a string b (of the same length) if in the first position where a and b differ, a has a character strictly smaller than the corresponding character in b. For example, "abcc" is lexicographically smaller than "abcd" because the first position they differ is at the fourth character, and 'c' is smaller than 'd'.

...

issue 格式

title: [easy] 1.Two Sum

content: https://leetcode.com/explore/challenge/card/september-leetcoding-challenge-2021/639/week-4-september-22nd-september-28th/3985/

* [ ] rex
* [ ] james
* [ ] henry

p.s 兩天內刷兩題,放在同個milestone (ex: 2021-09-25)

About


Languages

Language:Go 100.0%