Decodes message from file based on number in each line of text.
Attached file ... coding_qual_input.txt
has lines of text, each line has number, then space, then text
The goal is to read these lines and create full statements based on numbers in each line
The numbers are as below, triangular number, meaning
1, 3, 6, 10, 15, 21, 28, ....
Found formula online
n = any integer
xn = number found in text
xn = n (n + 1) / 2
n = (sqr(8 * xn + 1) - 1) / 2
Result from attached file
huge wish electric lot visit offer all our system now card current way check parent whole design skill wait man people deal planet moment
This one was part of longer task I was told to fix today.
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydev.net
Linkedin Login