7 kyu
Simple beads count
5,024 of 20,008Joz
Description:
Two red beads are placed between every two blue beads. There are N blue beads. After looking at the arrangement below work out the number of red beads.
@ @@ @ @@ @ @@ @ @@ @ @@ @
Implement a function returning the number of red beads.
If there are less than 2 blue beads return 0.
Fundamentals
Similar Kata:
Stats:
Created | Jan 7, 2017 |
Published | Jan 7, 2017 |
Warriors Trained | 27095 |
Total Skips | 2054 |
Total Code Submissions | 39831 |
Total Times Completed | 20008 |
Python Completions | 5024 |
JavaScript Completions | 5379 |
C Completions | 1168 |
Haskell Completions | 248 |
PHP Completions | 850 |
Java Completions | 2438 |
Ruby Completions | 415 |
Kotlin Completions | 940 |
C# Completions | 883 |
NASM Completions | 73 |
C++ Completions | 1498 |
Rust Completions | 897 |
TypeScript Completions | 497 |
Go Completions | 700 |
COBOL Completions | 17 |
Crystal Completions | 19 |
Shell Completions | 112 |
CoffeeScript Completions | 15 |
Scala Completions | 37 |
BF Completions | 34 |
Lua Completions | 10 |
Total Stars | 103 |
% of votes with a positive feedback rating | 88% of 2174 |
Total "Very Satisfied" Votes | 1711 |
Total "Somewhat Satisfied" Votes | 392 |
Total "Not Satisfied" Votes | 71 |
Total Rank Assessments | 14 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |