Kata Library: Ruby Practice
Sign Up
Time to claim your honor
Training
Practice
Complete challenging
Kata
to earn honor and ranks. Re-train to hone technique
Freestyle Sparring
Take turns remixing and refactoring others code through
Kumite
Community
Leaderboards
Achieve honor and move up the global leaderboards
Chat
Join our
Discord
server and chat with your fellow code warriors
Discussions
View our
Github Discussions
board to discuss general Codewars topics
About
Docs
Learn about all of the different aspects of Codewars
Blog
Read the latest news from Codewars and the community
Log In
Sign Up
Library
Collections
Newest
Oldest
Popularity
Positive Feedback
Most Completed
Least Completed
Hardest
Easiest
Name
Relevance
Low Satisfaction
All
My Languages
Agda (Beta)
BF (Beta)
C
CFML (Beta)
Clojure
COBOL (Beta)
CoffeeScript
CommonLisp (Beta)
Coq
C++
Crystal
C#
D (Beta)
Dart
Elixir
Elm (Beta)
Erlang (Beta)
Factor (Beta)
Forth (Beta)
Fortran (Beta)
F#
Go
Groovy
Haskell
Haxe (Beta)
Idris (Beta)
Java
JavaScript
Julia (Beta)
Kotlin
λ Calculus (Beta)
Lean
Lua
NASM
Nim (Beta)
Objective-C (Beta)
OCaml (Beta)
Pascal (Beta)
Perl (Beta)
PHP
PowerShell (Beta)
Prolog (Beta)
PureScript (Beta)
Python
R (Beta)
Racket
Raku (Beta)
Reason (Beta)
RISC-V (Beta)
Ruby
Rust
Scala
Shell
Solidity (Beta)
SQL
Swift
TypeScript
VB (Beta)
Approved & Beta
Approved
Beta
All
Kata I have not trained on
Kata I have not completed
Kata I have completed
8 kyu
easiest
7 kyu
6 kyu
5 kyu
4 kyu
3 kyu
2 kyu
1 kyu
hardest
ASCII Art
12
Algebra
10
Algorithms
1275
Angular
1
Arrays
197
Artificial Intelligence
1
Big Integers
1
Binary
21
Binary Search Trees
1
Binary Trees
1
Bits
12
Cellular Automata
1
Ciphers
11
Combinatorics
12
Compilers
1
Cryptography
19
Data Science
6
Data Structures
108
Date Time
13
Debugging
1
Discrete Mathematics
1
Domain Specific Languages
3
Dynamic Programming
12
Esoteric Languages
5
Filtering
5
Functional Programming
9
Fundamentals
273
Game Solvers
5
Games
43
Genetic Algorithms
4
Geometry
31
Graph Theory
9
Interpreters
10
JSON
1
Language Features
2
Linear Algebra
6
Linked Lists
2
Lists
40
Logic
75
Machine Learning
6
Mathematics
318
Matrix
22
Memoization
15
Metaprogramming
2
Monads
1
Networks
3
Number Theory
23
Object-oriented Programming
16
Parsing
22
Performance
60
Permutations
10
Physics
2
Probability
4
Puzzles
76
Queues
5
Reactive Programming
1
Recursion
27
Refactoring
1
Regular Expressions
53
Restricted
5
Riddles
1
Scheduling
2
Searching
5
Security
11
Sets
1
Sorting
54
State Machines
2
Statistics
8
Strings
234
Trees
4
Tutorials
6
Unicode
1
Web Scraping
1
FEATURED TAGS
Cryptography
Data Science
Debugging
Games
Tutorials
1,275 Kata Found
6 kyu
Colorful Number
708
msg7086
1 Issue Reported
Algorithms
6 kyu
Next polydivisible number
180
JohanWiltink
Algorithms
6 kyu
Kids and candies
787
sebaas
Algorithms
6 kyu
Goldbach's Conjecture
586
rsalgado
Algorithms
Number Theory
6 kyu
Multiples of 3 and 5 redux
1,967
yumaikas
Algorithms
Mathematics
5 kyu
Largest product in a series
3,814
JaniL
Mathematics
Algorithms
6 kyu
Cut me in Pieces but in The Way I Like
126
raulbc777
Fundamentals
Algorithms
Mathematics
5 kyu
Mean Square Error
22,185
kylehill
Arrays
Mathematics
Algorithms
6 kyu
Dreidel dreidel
784
steinbachr
Games
Algorithms
6 kyu
Arrh, grabscrab!
7,324
matstc
2 Issues Reported
Strings
Algorithms
4 kyu
Hash.flattened_keys
692
lunitik
Recursion
Algorithms
6 kyu
Draw a Circle.
280
AJFarmar
1 Issue Reported
Strings
Geometry
ASCII Art
Algorithms
6 kyu
Mutual Recursion
8,655
dnolan
1 Issue Reported
Mathematics
Algorithms
Recursion
7 kyu
Statistics Algorithm - Calculate Sample Space
478
Fluffy
Mathematics
Algorithms
6 kyu
SHA-256 Cracker
847
alexpop
Security
Algorithms
Puzzles
7 kyu
Decoding a message
2,887
samhstn
Puzzles
Algorithms
Cryptography
Security
Games
4 kyu
Befunge Interpreter
3,613
eugene-bulkin
9 Issues Reported
Interpreters
Algorithms
6 kyu
Last non-zero digit of factorial
474
mauro-1
Mathematics
Algorithms
6 kyu
Matrix Trace
1,084
chipit24
1 Issue Reported
Linear Algebra
Mathematics
Matrix
Algorithms
6 kyu
Binary Coded Decimal
783
chipit24
1 Issue Reported
Algorithms
5 kyu
Exponent method
1,326
craecke
Mathematics
Algorithms
6 kyu
Grouped by commas
10,619
agram
2 Issues Reported
Algorithms
6 kyu
N-th Fibonacci
21,585
boatmeme
3 Issues Reported
Algorithms
7 kyu
Credit Card Checker
745
sergioet
1 Issue Reported
Fundamentals
Algorithms
7 kyu
Weight of its Contents
2,612
dnolan
3 Issues Reported
Algorithms
Mathematics
6 kyu
Bocce
242
dnolan
Puzzles
Algorithms
6 kyu
Split Strings
166,870
jhoffner
Regular Expressions
Strings
Algorithms
5 kyu
Base -2
1,028
sergiogarciadev
1 Issue Reported
Algorithms
Binary
5 kyu
Interleaving Arrays
2,092
arlaneenalra
Algorithms
Arrays
5 kyu
ISBN-10 Validation
11,366
nklein
4 Issues Reported
Regular Expressions
Algorithms
Loading...
Confirm
Collect:
undefined
Loading collection data...