摘要:
k个k进制的数字进行不进位加法,结果为0 时空复杂度O(n) class Solution { public: string decTok(int dec,int k){ string ret = ""; while(dec){ ret += char(dec%k + '0'); dec /= k; 阅读全文
posted @ 2023-01-30 22:46
破忒头头
阅读(24)
评论(0)
推荐(0)
摘要:
哈希表 时空复杂度 O(n) class Solution { public: vector<int> findNumsAppearOnce(vector<int>& nums) { unordered_map<int,int> m; vector<int> res; for(auto x : nu 阅读全文
posted @ 2023-01-30 21:27
破忒头头
阅读(20)
评论(0)
推荐(0)
浙公网安备 33010602011771号