把数组排成最小的数
时间限制:1秒
空间限制:32768K
热度指数:187544
本题知识点:
数组
算法知识视频讲解
校招时部分企业笔试将禁止编程题跳出页面,为提前适应,练习时请使用在线自测,而非本地IDE。
题目描述
输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。例如输入数组{3,32,321},则打印出这三个数字能排成的最小数字为321323。
笔记
收藏
纠错
把数组排成最小的数
返回全部题目
剑指Offer_编程题
列表加载中...
上一题
下一题
讨论
排行
保存并调试
求助
做题遇到困难?
查看通过的代码
参与大家的讨论
查看编程常见问题
练习模式
切换考试模式,提前熟悉考试环境
练习模式
考试模式
保存并调试之后,这里将会显示运行结果
import java.util.ArrayList; public class Solution { public String PrintMinNumber(int [] numbers) { } }
class Solution { public: string PrintMinNumber(vector
numbers) { } };
# -*- coding:utf-8 -*- class Solution: def PrintMinNumber(self, numbers): # write code here
class Solution { public string PrintMinNumber(int[] numbers) { // write code here } }
function PrintMinNumber(numbers) { // write code here } module.exports = { PrintMinNumber : PrintMinNumber };
function PrintMinNumber(numbers) { // write code here }