Canva Interview Question

How can we write multiple strings to a file while keeping them separated?

Interview Answers

Anonymous

May 15, 2019

Base64 encode, and write them in a file line by line.

1

Anonymous

Aug 31, 2017

Hint: Using special characters, e.g. newlines, alone doesn't work well if you have arbitrary user inputs.

2

Anonymous

Mar 21, 2019

If arbitrary can be only text/string input, then any non-printable character should do the job.