Adobe | CS-2 | Bangalore
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-06-12Added By Anonymous
Source: Link
I appeared for an interview for a CS 2 position in Bangalore. Team relies heavily on C++.
This was my 4th round with a senior CS.
Sort a list of alpha-numeric strings such that numeric part are sorted based on their numeric value
// // abc
// // abc5d
// // abc100
// // abc30000
// // abc2000000a
// // a1b2c3
// // a10b20c30
// // xyz100
The alphabets need to be matched against alpha and numeric against numrics. For ex : abc100 vs abc200 : Then compare a to a, b to b , c to c and 100 to 200.
In case there of abcd vs abc10 , we need to compare d's ASCII value to 10.