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 | 301 Views, 21270 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 | 301 Views, 21270 Search Bots | 41 Words Subscribe to Feed Burner

Related Articles

  1. Reverse a Linked List
  2. Sort a Partially Sorted List
  3. Daily Interview Problem: Circle of Chained Words
  4. Binary Tree Level with Minimum Sum
  5. Daily Interview Question: Longest Sequence with Two Unique Numbers
  6. Progess made
  7. [Daily Problem] Remove k-th Last Element From Linked List
  8. Algorithm Interview: Lowest Common Ancestor of 2 Nodes in Binary Tree
  9. Daily Interview Problem: Spiral Traversal of Grid
  10. CPU Utilization

Comments (0)

    Be the first one to comment this page !


Page Edited: May 11 2024 14:36:49 | RSS Subscription
How to Cook a Perfect Steak? | <meta name="robots" content="noindex, follow" />