Hackerrank – Encryption
Problem Statement A description of the problem can be found on Hackerrank. Solution Calculate a width and height of a required matrix: height = ceil(length(input_string) width = floor(length(input_string) Then create a height x width matrix containing a characters from input_string. Transpose the matrix and print all rows. Node: Instead we can print all columns of […]