Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
String(num).compactMap { Int(String($0)) }.reversed() in new version of Swift
Fairly slow and memory consuming solution.
You don't have
pow
because its in theFoundation
module. Just need toimport Foundation
.There was no year zero. The Julian and Gregorian calendars went from 1 BC to AD 1. That's why the first century was the years 1 to 100 inclusive, and so on.
This comment is hidden because it contains spoiler information about the solution