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

Related Articles

  1. ImageMagick Vulnerabilities -  CVE-2016–3714
  2. Algorithm Interview Question: Max and Min with Limited Comparisons
  3. [Daily Problem] Add two numbers as a linked list
  4. Maximum In A Stack
  5. Algorithm Interview: Level Order Traversal of Binary Tree
  6. Daily Interview Question: Word Search
  7. CVE-2015-8874 - cPanel EasyApache Vulnerabilities
  8. [Daily Problem] Angles of a Clock
  9. Reverse a Linked List
  10. Daily Interview Problem: Minimum Removals for Valid Parenthesis

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="index, follow">