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

Related Articles

  1. CVE-2015-8874 - cPanel EasyApache Vulnerabilities
  2. Daily Interview Problem: Room scheduling
  3. Daily Interview Problem: Spiral Traversal of Grid
  4. Palindrome Integers
  5. Two-Sum
  6. PHP Unit Tests on VPS Server
  7. Daily Interview Problem: Largest Product of 3 Elements I
  8. Design Tic-Tac-Toe
  9. Daily Interview Puzzle: Ways to Traverse a Grid
  10. Daily Interview Problem: Get all Values at a Certain Height in a Binary Tree

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" />