Arista Networks Interview Question

Basic coding to print string? then follow up with reverse each word in command line input? (gave the best performing solution) follow up with other ways of doing it though not the best (interviewer mentioned 5 other ways exists)

Interview Answer

Anonymous

May 31, 2018

First two were piece of cake. One for on each argument (except first), then one loop on each char in the argument. Second for loop counter starting from strlen to zero. Print each char inside the loop. After getting the best solution couldn't think of worst ways of doing it.