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

Related Articles

  1. Daily Interview Puzzle: Intersection of Linked Lists
  2. Staying on a Chess Board
  3. Daily Interview Problem: Room scheduling
  4. Daily Interview Question: Longest Sequence with Two Unique Numbers
  5. [Daily Problem] Course Prerequisites
  6. Daily Interview Problem: Deepest Node in a Binary Tree
  7. Daily Interview Problem: Given two arrays, write a function to compute their intersection.
  8. Top K Frequent words
  9. Autorun.inf Virus Protection
  10. [Daily Problem] Remove Consecutive Nodes that Sum to 0

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