about | help | code help+videos | done | prefs |
(HARD) Given an input String and a number of rails, encode it using a rail fence cipher and return the ciphertext. 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... apcsaEncryptRailFence("WEAREDISCOVERED", 3) → "WECRERDSOEEAIVD" apcsaEncryptRailFence("helphelpimbeingrepressed", 3) → "hhiiesepepmenrpesdllbgre" apcsaEncryptRailFence("0123456789", 5) → "0817926354" ...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: 320
Copyright Nick Parlante 2017 - privacy