- 博客(2)
- 收藏
- 关注
原创 [Leetcode] 82. Remove Duplicates from Sorted List II
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next.
2022-02-20 09:38:07
444
原创 [Leetcode] 844. Backspace String Compare
class Solution { public: bool backspaceCompare(string s, string t) { stack <int> ss; stack <int> st; for(int i = 0; i < s.size(); i++){ if(s.at(i) == '#' && !ss.empty()){ ss.po.
2022-02-19 21:14:10
140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人