CodeAgon 2.0 | CodeNation Labs | Trilogy Innovations | SDE & SDE Intern

Question · Posted Oct 2021

Question 2 was as follows: There is one line written in a file and you have to end with A lines in the file. There are 2 steps to doing that: 1. Select 2. Copy and Paste There are 3 ways to select: 1. Select X lines, which costs X units of energy. 2. Select all the lines in the file, which costs 1 unit of energy. 3. Use the previously selected Y lines again, which costs 0 units of ...

The full answer & interview discussion are available to premium members.

Log in Create a free account