Convert String to LeetSpeak in Java
The challenge
Your task is to write a function toLeetSpeak
that converts a regular english sentence to Leetspeak.
More about LeetSpeak You can read at wiki -> https://en.wikipedia.org/wiki/Leet
Consider only uppercase letters (no lowercase letters, no numbers) and spaces.
For example:
|
|
In this challenge we use a simple LeetSpeak dialect. Use this alphabet:
|
|
The solution in Java code
Option 1:
|
|
Option 2:
|
|
Option 3:
Test cases to validate our solution
|
|