时间复杂度 O(logn) 的理解可以这么理解,比如以下代码:<pre<codeclassDemo{publicstaticvoidmain(Stringargs){i1;while(i<n){ii2;