Canva interview question

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

Interview Answers

Anonymous

15 May 2019

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

1

Anonymous

31 Aug 2017

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

2

Anonymous

21 Mar 2019

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