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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!