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.
case 10,9: return 'A'
wave = []string{} ??? best practice?
allocations will still happen!
if you want to avoid this, set the capacity
wave = make([]string, 0 , len(words))
sort.SliceStable -> O(n*log n)
range numbers[1:]
range numbers[1:]
range numbers[1:]
range numbers[1:] )))
This comment is hidden because it contains spoiler information about the solution
var n, max int - better choice
sort.Ints - O(n * log n). It's not best practice. There maybe 0(n)
O(n^2)
))) wonderful
Hahah) It is funny joke
This comment is hidden because it contains spoiler information about the solution
append - good solution if result = make([]int, 0, n)
Loading more items...