7 kyu
L2: Triple X
2,723 of 4,981Swolebrain
Description:
Given a string, return true if the first instance of "x" in the string is immediately followed by the string "xx".
"abraxxxas" → true
"xoxotrololololololoxxx" → false
"softX kitty, warm kitty, xxxxx" → true
"softx kitty, warm kitty, xxxxx" → false
Note :
- capital X's do not count as an occurrence of "x".
- if there are no "x"'s then return false
Strings
Regular Expressions
Fundamentals
Similar Kata:
Stats:
Created | Jan 7, 2016 |
Published | Jan 7, 2016 |
Warriors Trained | 6916 |
Total Skips | 121 |
Total Code Submissions | 20656 |
Total Times Completed | 4981 |
JavaScript Completions | 2723 |
Python Completions | 2010 |
Clojure Completions | 29 |
Haskell Completions | 58 |
Rust Completions | 197 |
CoffeeScript Completions | 13 |
C Completions | 88 |
COBOL Completions | 6 |
Total Stars | 60 |
% of votes with a positive feedback rating | 94% of 854 |
Total "Very Satisfied" Votes | 771 |
Total "Somewhat Satisfied" Votes | 67 |
Total "Not Satisfied" Votes | 16 |
Total Rank Assessments | 63 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 8 kyu |