Skip to content

Instantly share code, notes, and snippets.

View ARAGORN212's full-sized avatar
😎
Focusing

Morteza ARAGORN212

😎
Focusing
View GitHub Profile
@MunimIftikhar
MunimIftikhar / TelephoneNumberValidator.md
Last active May 10, 2023 13:39
freeCodeCamp: Telephone Number Validator

Problem statement

Return true if the passed string looks like a valid US phone number.

The user may fill out the form field any way they choose as long as it has the format of a valid US number. The following are examples of valid formats for US numbers (refer to the tests below for other variants):

555-555-5555
(555)555-5555
(555) 555-5555
555 555 5555
@martin-mok
martin-mok / CaesarsCipher.md
Last active July 5, 2023 16:56
freecodecamp: Caesars Cipher

Description

One of the simplest and most widely known ciphers is a Caesar cipher, also known as a shift cipher. In a shift cipher the meanings of the letters are shifted by some set amount. A common modern use is the ROT13 cipher, where the values of the letters are shifted by 13 places. Thus 'A' ↔ 'N', 'B' ↔ 'O' and so on. Write a function which takes a ROT13 encoded string as input and returns a decoded string. All letters will be uppercase. Do not transform any non-alphabetic character (i.e. spaces, punctuation), but do pass them on.

Tests

@martin-mok
martin-mok / RomanNumeralConverter.md
Last active May 19, 2023 20:31
freecodecamp: Roman Numeral Converter

Description

Convert the given number into a roman numeral. All roman numerals answers should be provided in upper-case.

Tests