String(num).compactMap { Int(String($0)) }.reversed() in new version of Swift
Fairly slow and memory consuming solution.
Loading collection data...
String(num).compactMap { Int(String($0)) }.reversed() in new version of Swift
Fairly slow and memory consuming solution.