上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 123 下一页
摘要: https://blog.csdn.net/weixin_45502414/article/details/130151842 阅读全文
posted @ 2024-01-23 16:32 AngDH 阅读(18) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=225 lang=cpp * * [225] 用队列实现栈 */ // @lc code=start class MyStack { public: MyStack() { q1 = new queue<int>; q2 = new queue 阅读全文
posted @ 2024-01-21 18:24 AngDH 阅读(10) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=232 lang=cpp * * [232] 用栈实现队列 */ // @lc code=start class MyQueue { public: MyQueue() { } void push(int x) { s1.push(x); } 阅读全文
posted @ 2024-01-21 18:01 AngDH 阅读(8) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=150 lang=cpp * * [150] 逆波兰表达式求值 */ // @lc code=start class Solution { public: int calc(int left, int right, char sign) { s 阅读全文
posted @ 2024-01-20 20:24 AngDH 阅读(17) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=20 lang=cpp * * [20] 有效的括号 */ // @lc code=start class Solution { public: bool isValid(string s) { stack<char> cs; for (cha 阅读全文
posted @ 2024-01-20 19:26 AngDH 阅读(4) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=61 lang=cpp * * [61] 旋转链表 */ // @lc code=start /** * Definition for singly-linked list. * struct ListNode { * int val; * L 阅读全文
posted @ 2024-01-17 17:32 AngDH 阅读(12) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=19 lang=c * * [19] 删除链表的倒数第 N 个结点 */ // @lc code=start /** * Definition for singly-linked list. * struct ListNode { * int 阅读全文
posted @ 2024-01-17 16:36 AngDH 阅读(5) 评论(0) 推荐(0)
摘要: /* * @lc app=leetcode.cn id=27 lang=c * * [27] 移除元素 */ // @lc code=start int removeElement(int *nums, int numsSize, int val) { int *p = nums; int *q = 阅读全文
posted @ 2024-01-16 16:52 AngDH 阅读(8) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-01-12 14:06 AngDH 阅读(9) 评论(0) 推荐(0)
摘要: adom = document.createElement('audio'); pt = adom.canPlayType("audio/ogg; codecs=\"vorbis\""); pt2 = adom.canPlayType("audio/wav; codecs=\"1\""); pt3 阅读全文
posted @ 2024-01-04 11:13 AngDH 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 123 下一页