Question: in ruby #write a method trifling_triplet that accepts a string #as an argument and return a boolean indicating whether #or not the sting contains three
in ruby #write a method trifling_triplet that accepts a string #as an argument and return a boolean indicating whether #or not the sting contains three of the same character consecutive
p trifling_triplet('caaabb') p trifling_triplet('terrrrrible') p trifling_triplet('runningg') p trifling_triplet('bootcamp') p trifling_triplet('e')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
