โ† Bajaj Finserv Health questions

Sort an array containing mixed strings and numbers

Filed under Bajaj Finserv Health

The question

Sort an array of strings containing a mix of numbers (like "1", "2") and names (like "john", "Amanda") such that numbers are sorted in ascending order first, followed by names in ascending order.

No write-up yet. Related questions below have one.

Related Bajaj Finserv Health questions

Collected from public candidate posts and coding forums. Updated Nov 2026.