自学内容网 自学内容网

LeetCode --- 2160. Minimum Sum of Four Digit Number After Splitting Digits 解题报告

Question:

You are given a positive integer num consisting of exactly four digits. Split num into two new integers new1 and new2 by using the digits found in numLeading zeros are allowed in new1 and new2, and all the digits found in num must be used.

  • For example, given num = 2932, you have the following digits: two 2's, one 9 and one 3. Some of the possible pairs [new1, new2] are [22, 93][23, 92][223, 9] and [2, 329].

Return the minimu


原文地址:https://blog.csdn.net/u012965373/article/details/144017253

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!