No one has replied
@MJiang Good point on Queue size. Thanks for correcting the space complexity.
@KylinZenda This is due to the change of type of wordList, when the original answer is posted, wordList is a set and not it is a list.
Using built-in insert function is a direct approach as what our mind think, but it take time. Using insert will take about 60ms.
Very concise solution.
I just translate the "Iterative - BFS" into C++ as below :
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.