網頁

2023年11月19日 星期日

C++頻率分析解Leetcode 1887 Reduction Operations to Make the Array Elements Equal



C++頻率分析解Leetcode 1887 Reduction Operations to Make the Array Elements EqualLeetcode這個週末的兩題都能用frequency  count,即所謂的counting sort來解題,如1887. Reduction Operations to Make the Array Elements Equal。因為是線性時間比起官方解答都要快,當然就100趴

沒有留言:

張貼留言

HTML 編輯器