LeetCode-Swift
LeetCode-Swift copied to clipboard
Solutions to LeetCode by Swift
@soapyigu , Leetcode has added a new test case ["abc","ab"]. So the solution is failing I have added this check inside initGraph method, now it's working. `if currentWord.count > nextWord.count...
The old version of the solution to `304. Range Sum Query 2D - Immutable` didn't cover the case that the input matrix is empty. When the input matrix is empty,...
Ref: https://repl.it/repls/YellowishElegantQuery