Encryption on HackerRank: https://www.hackerrank.com/challenges...
Encryption on Edabit: https://edabit.com/challenge/jfCsugyp...
In the HackerRank Challenge, Encryption, the problem statement reads:
An English text needs to be encrypted using the following encryption scheme.
First, all spaces must be removed from the text. The variable “L” equals the length of the text.
Then, all characters are written to a grid, whose rows and columns have the following constraints:
The number of rows in the grid must be less than or equal to the nearest double value that is less than or equal to the square root of “L”, and, the number of rows is less than or equal to the number of columns in the grid, and, the number of columns in the grid is less than or equal to the nearest double value that is greater than or equal to the square root of “L”.
To further illustrate the equation works, using the string, “if man was meant to stay on the ground god would have given us roots”, the length of the string - with all spaces removed, is 54 characters. The number or rows in our grid must be less than or equal to the nearest double value that is less than or equal to the square root of 54, which is 7. The number of columns must be less than or equal to the nearest double value that is greater than or equal to the square root of 54, which is 8.
The encoded message is obtained by displaying the characters in a column, inserting a space, and then displaying the next column and inserting a space, and so on:
imtgdvs fearwer mayoogo anouuio ntnnlvt wttddes aohghn sseoau
If this video provides any value to your life, please like and share it with your friends.
If you'd like to support my platform, please consider buying me a coffee at https://www.buymeacoffee.com/EdClark
Closed Captions/Subtitles - ed2clark@gmail.com
Video Editing - ed2clark@gmail.com
Song: Heaven - Ikson (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
/ ikson
In questa pagina del sito puoi guardare il video online Encryption Java Coding Challenge | HackerRank | Edabit | How'd You Code That? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Ed Clark 19 luglio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,616 volte e gli è piaciuto 95 spettatori. Buona visione!