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
| // Personal solution for an algorithm practice | |
| import Foundation | |
| func solution(_ n: Int, _ ladder: [[Int]]) -> [String] { | |
| var boolLadder = Array(repeating: Array(repeating: false, count: n), | |
| count: ladder.count) | |
| let start = UnicodeScalar("A").value | |
| let end = UnicodeScalar("Z").value | |
| var alphabetArr = Array(repeating: "", count: Int(end - start) + 1) |
OlderNewer