wes d2a2ba9e15 first commit 4 年 前
..
README.md d2a2ba9e15 first commit 4 年 前
code.cpp d2a2ba9e15 first commit 4 年 前
unitTest.cpp d2a2ba9e15 first commit 4 年 前

README.md

Double Letters

by Helen Yu tags: strings, regex, validation

Summary

Create a function that takes a word and returns true if the word has two consecutive identical letters. Examples double_letters("loop") ➞ true double_letters("yummy") ➞ true double_letters("orange") ➞ false double_letters("munchkin") ➞ false Notes N/A

Instructions

Create a function that takes a word and returns true if the word has two consecutive identical letters.

Examples

double_letters("loop") ➞ true

double_letters("yummy") ➞ true

double_letters("orange") ➞ false

double_letters("munchkin") ➞ false

Notes

N/A