Skip to content

Instantly share code, notes, and snippets.

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
± 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