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

Related Articles

  1. Fix Brackets
  2. New Vulnerabilities (CVE-2016-4581) have been detected in CentOS/RHEL/CloudLinux 7
  3. Algorithm Interview: Determine If Linked List is Palindrome
  4. Daily Interview Problem: Spiral Traversal of Grid
  5. Spreadsheet Columns
  6. Find Missing Numbers in an Array
  7. Algorithm Interview: Longest Consecutive Sequence
  8. Algorithm Interview: Make the Largest Number
  9. Skip the readings, focus on problems. And use all the hints!
  10. Kaprekar

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