To the Top
File:  root - text - article - 2020 - 01 - make-the-largest-number.txt
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Category: Computing | 270 Views, 19995 Search Bots | 41 Words

Subscribe to Feed Burner | Browse | Archive
Hi, here's your problem today. This problem was recently asked by Uber:

Given a number of integers, combine them so it would create the largest number.

Example:
Input: [17, 7, 2, 45, 72]
Output: 77245217

def largestNum(nums):
# Fill this in.

print largestNum([17, 7, 2, 45, 72])
# 77245217
Tags: 每日算法题, 算法, 数据结构, 面试题, Daily Interview Problem, Data Structures and Algorithms, Computer Programming, Python, | English | Home Page | Cateogry: Computing | 270 Views, 19995 Search Bots | 41 Words Subscribe to Feed Burner

Related Articles

  1. Daily Interview Question: Edit Distance
  2. Compare Version Numbers
  3. PHP Unit Tests on VPS Server
  4. Daily Interview Problem: Queue Using Two Stacks
  5. Daily Interview Problem: Full Binary Tree
  6. Reverse a Linked List
  7. Top K Frequent words
  8. Daily Interview Problem: Arithmetic Binary Tree
  9. Two Tricks of Delphi
  10. YES!!

Comments (0)

Your Email (Domain Part Not Exposed):

Your Comments:

Privately By Mail Colors More Smileys S x y @

Verification (Click Image 2 Refresh):

    Be the first one to comment this page !


Page Edited: October 30 2020 14:21:09 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />