咁都要做code review啩,試過要搵list of int入面最大嘅十個(例如一堆貨要搵最多人買嘅十件貨),寫完有reviewer comment點解唔sort完再sublist,簡單直接
上面有人話唔係rocket science做lc學埋啲algorithm無用,call library最實際,如咁諗用language本身有嘅sort同sublist的確係最正路亦唔會錯
但做過吓題目嘅就會識top k algorithm或者無見過都會諗吓sort完即最大嘅n個都知道晒其實係做咗比top 10不必要嘅步驟,個思維唔會一樣,我睇做過吓題嘅未必學多咗嘢,但會多咗無知之知