Home/Experiences/Zomato/DSA coding round: reverse words in a string -- no offer
Zomato·Software Engineer (Internship) · junior
Rejected

DSA coding round: reverse words in a string -- no offer

NandedAug 20240by Anonymous

Application

I applied online. I interviewed at Zomato (Nānded)

Interview

There can be multiple spaces between two words and there can be leading or trailing spaces but in the output reversed string you need to put a single space between two words, and your reversed string should not contain leading or trailing spaces.

Interview questions [1]

Question 1

Reverse Words in a String Easy 10m average time 90% success 0/40 Asked in companies You are given a string 'str' of length 'N'. Your task is to reverse the original string word by word.

The loop · 1 round

DSA

Single coding question: reverse words in a string, handling multiple/leading/trailing spaces

Shared Jul 2026
LeaderboardSalary
Language
Account