[Solution]Problem 27: Create largest possible number using list[Amazon]
Integer List, String Conversions, Custom Comparitors
Problem
This problem was asked by Amazon
Given a list of non-negative integers, nums, arrange them such that they form the largest number and return it.
Since the result may be very large, you need to return a string instead of an integer.
For example, given the list, nums = [3,30,34,5,9] we want to return the string, “9534330”
Keep reading with a 7-day free trial
Subscribe to Technology Made Simple to keep reading this post and get 7 days of free access to the full post archives.