Files
alexm e092cb029c
Build, test, deploy / site (push) Failing after 15m13s
Initial commit
2026-11-12 22:24:02 -05:00

8 lines
213 B
Plaintext

// CALL: COUNT_BASES('A', "GATTACA")
// EXPECT: COUNT_BASES returned 3
To count the B bases in T:
Start with Count at 0.
For each letter c of T:
If c is B, add 1 to Count.
The answer is Count.