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

Related Articles

  1. [Daily Problem] Validate Balanced Parentheses
  2. Algorithm Interview: Shifted String
  3. Algorithm Interview: String Compression
  4. Daily Interview Problem: Contiguous Subarray with Maximum Sum
  5. Algorithm Interview: Determine If Linked List is Palindrome
  6. Reverse a Directed Graph
  7. Daily Interview Puzzle: Intersection of Linked Lists
  8. First and Last Indices of an Element in a Sorted Array
  9. Algorithm Interview Question: Symmetric k-ary Tree
  10. Daily Interview Problem: Jump to the End

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