Skip to content

Commit 772cc47

Browse files
committed
docs: kata description
1 parent fcbeddb commit 772cc47

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

kata/7-kyu/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@
531531
- [Status Arrays](status-arrays "601c18c1d92283000ec86f2b")
532532
- [Steps](steps-1 "6473603854720900496e1c82")
533533
- [Stone Pickaxe Crafting](stone-pickaxe-crafting "65c0161a2380ae78052e5731")
534+
- [Stones on the Table](stones-on-the-table "5f70e4cce10f9e0001c8995a")
534535
- [Strange mathematics](strange-mathematics "604517d65b464d000d51381f")
535536
- [String ends with?](string-ends-with "51f2d1cafc9c0f745c00037d")
536537
- [String interlacing](string-interlacing "56e120ee2bb224eaa3000ba2")
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# [Stones on the Table](https://www.codewars.com/kata/stones-on-the-table "https://www.codewars.com/kata/5f70e4cce10f9e0001c8995a")
2+
3+
There are some stones on Bob's table in a row, and each of them can be red, green or blue, indicated by the characters `R`, `G`, and `B`.
4+
5+
Help Bob find the minimum number of stones he needs to remove from the table so that the stones in each pair of adjacent stones have different colors.
6+
7+
Examples:
8+
9+
```
10+
"RGBRGBRGGB" => 1
11+
"RGGRGBBRGRR" => 3
12+
"RRRRGGGGBBBB" => 9
13+
```

0 commit comments

Comments
 (0)