一个小问题
给定 \(n\) 个非负整数。将这 \(n\) 个数排成一行,使得相邻两数的乘积之和最小。
试问应如何排列,排列方案是否唯一?
「以解决问题为乐」
真的喜欢么?真的喜欢就去做吧。
Lost Boy Calling 。。。。
... Many of these issues are best dealt with at the algorithmic level, rather than by "tweaking" the code.
This is an obscurity that catches the unwary.
原来我什么都不懂。