摘要:
很简单的题目,一个容器平 class Solution { public: vector<int> sortedSquares(vector<int>& nums) { int n=nums.size(); vector<int>num2(n); for(int i=0;i<=nums.size() 阅读全文
posted @ 2021-03-01 17:58
章大佬
阅读(29)
评论(0)
推荐(0)
摘要:
建造一个hash表,pos指针遍历链表,有不同的就存入hash表,相同的则跳过。题目思路比较简单,活用容器即可。 class Solution { public: ListNode* removeDuplicateNodes(ListNode* head) { if(head==NULL) { re 阅读全文
posted @ 2021-03-01 17:37
章大佬
阅读(35)
评论(0)
推荐(0)

浙公网安备 33010602011771号