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.
Resolving,
reverse complement
!=complement
according to the Bioinformatics website.This kata only asks for
complement
DNA, no need to reverse it.Because sentinal values are a bad idea for many reasons, though you probably already learned this in the 4 years since.
However I'm still bamboozeled as to why it returns
Option<Vec<i32>>
as opposed toOption<[i32; 3]>
. This isn't an arbitrary list, it's exactly 3 elements. I might even expectOption<(i32, i32, i32)
.OP solved it, closing
yes, I had to re-read the instructions 3x before I realized that it's not about "complemantary DNA" but about some arbitrary string manipulation ;)
Because the function does not always return a vector of integers.