about | help | code help+videos | done | prefs |
(HARD) Given an ciphertext String and a number of rails, decode it using a rail fence cipher and return the plaintext. The rail fence cipher is described here: https://en.wikipedia.org/wiki/Rail_fence_cipher Precondition: at least two rails.HINTYou will need to think two-dimensionally again. (I think) this is harder than the encode. apcsaDecryptRailFence("WECRERDSOEEAIVD", 3) → "WEAREDISCOVERED" apcsaDecryptRailFence("hhiiesepepmenrpesdllbgre", 3) → "helphelpimbeingrepressed" apcsaDecryptRailFence("0817926354", 5) → "0123456789" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 330
Copyright Nick Parlante 2017 - privacy