这个递归调用没有看懂,求指教
public static List<Integer> max5(List<Integer> lst)
{
if(lst.size()<=5) return lst;
int a = lst.remove(0); __________________; // 填空 --移除的数会被当做 返回值 返回
List<Integer> b = max5(lst);
for(int i=0; i<b.size(); i++)
{
int t = b.get(i);
if(a>t)
{
b.set(i, a);
__________________; // 填空
a = t;
}
}
return b;
}
public static void main(String[] args)
{
List<Integer> lst = new Vector<Integer>();
lst.addAll(Arrays.asList(12,127,85,66,27,34,15,344,156,344,29,47));
System.out.println(max5(lst));
}