比如n=5, m=3 关键在于不要让m=0,1,2,0,1,2,...这样循环:n: 0,1,2,3,4,5m: 0,1,2,0,1,2 可以直接跳着来:n: 0,1,2,3,4,5m: 0, ,2, ,4, import java.util.*; public class Solution { public int LastRemaining_Solution(int n, int m) { if(n<=0) return -1; LinkedList<Integer> container = new LinkedList<...