Skip to content
#

code-wars-solution

Here are 22 public repositories matching this topic...

Given a lowercase string that has alphabetic characters only and no spaces, return the highest value of consonant substrings. Consonants are any letters of the alphabet except "aeiou". We shall assign the following values: a = 1, b = 2, c = 3, .... z = 26. For example, for the word "zodiacs", let's cross out the vowels. We get: "z o d ia cs" -- …

  • Updated Jul 6, 2022
  • JavaScript

ROT13 is a simple letter substitution cipher that replaces a letter with the letter 13 letters after it in the alphabet. ROT13 is an example of the Caesar cipher. Create a function that takes a string and returns the string ciphered with Rot13. If there are numbers or special characters included in the string, they should be returned as they are…

  • Updated Jul 6, 2022
  • JavaScript

"The Shell Game" involves cups upturned on a playing surface, with a ball placed underneath one of them. The index of the cups are swapped around multiple times. After that the players will try to find which cup contains the ball. Your task is as follows. Given the cup that the ball starts under, and list of swaps, return the location of the bal…

  • Updated Jul 6, 2022
  • JavaScript

A stream of data is received and needs to be reversed. Each segment is 8 bits long, meaning the order of these segments needs to be reversed, for example: 11111111 00000000 00001111 10101010 (byte1) (byte2) (byte3) (byte4) should become: 10101010 00001111 00000000 11111111 (byte4) (byte3) (byte2) (byte1) The total number of bits will always be a…

  • Updated Jul 6, 2022
  • JavaScript

Improve this page

Add a description, image, and links to the code-wars-solution topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the code-wars-solution topic, visit your repo's landing page and select "manage topics."

Learn more