This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution: | |
def minMutation(self, start: str, end: str, bank: List[str]) -> int: | |
result = 0 | |
if end in bank: | |
for i in range(len(start)): | |
if start[i] != end[i]: | |
result += 1 | |
return -1 if result == 0 else result |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
± bundle update wechat | |
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. | |
Fetching gem metadata from https://gems.ruby-china.com/.............. | |
Fetching gem metadata from https://gems.ruby-china.com/.. | |
Resolving dependencies.... | |
Using rake 13.0.6 | |
Using concurrent-ruby 1.1.10 | |
Using i18n 1.10.0 | |
Using minitest 5.15.0 | |
Using thread_safe 0.3.6 |
OlderNewer