Skip to content

Latest commit

 

History

History

find-capitals

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Find the Capitals

Write a function that takes a single string (word) as argument. The function must return an ordered list containing the indexes of all capital letters in the string.

Example (Input --> Output)

"CodEWaRs" --> [0,3,4,6]