Pergunta de entrevista da empresa NVIDIA

1. How to print line before and after a line that matches with a specific string 2. File read and write operations related 3. Different ways to do String reverse

Resposta da entrevista

Sigiloso

23 de mai. de 2022

1. Parse through the file first time to Store the line numbers, parse through the file second time to print the lines before and after the string that matches a particular line 2. Basic file I/o 3. I could do only one way using 2 for loops, interviewer was looking for more optimized or easier solution

1