摘要: 方案一 隐藏某个请求头后再加上。检查特定的 HTTP 响应是否在 Nginx 的 location 块中包含 "Access-Control-Allow-Origin" 头部,可以使用 proxy_hide_header 指令来隐藏响应中的头部,若隐藏后再加上可以实现去重的效果。 以下是实现此操作的 阅读全文
posted @ 2024-04-01 20:54 凌雨尘 阅读(50) 评论(0) 推荐(0) 编辑
摘要: Source Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. Example Given the below binary tree, 1 / \ 阅读全文
posted @ 2024-03-09 15:20 凌雨尘 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Source Problem Statement Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a bina 阅读全文
posted @ 2024-02-03 13:05 凌雨尘 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Source Problem Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the rootnode down to 阅读全文
posted @ 2024-01-07 21:06 凌雨尘 阅读(9) 评论(0) 推荐(0) 编辑
摘要: Source Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root 阅读全文
posted @ 2023-12-20 20:52 凌雨尘 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Source Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). Example Given binary tree 阅读全文
posted @ 2023-11-04 21:31 凌雨尘 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Source Given a binary tree, return the postorder traversal of its nodes' values. Example Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. Challe 阅读全文
posted @ 2023-10-14 15:35 凌雨尘 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Source Given a binary tree, return the inorder traversal of its nodes' values. Example Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,3,2]. Challeng 阅读全文
posted @ 2023-09-02 14:29 凌雨尘 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Source Given a binary tree, return the preorder traversal of its nodes' values. Note Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. Example Ch 阅读全文
posted @ 2023-08-12 22:29 凌雨尘 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Source Problem Remove all elements from a linked list of integers that have value val. Example Given 1->2->3->3->4->5->3, val = 3, you should return t 阅读全文
posted @ 2023-07-22 14:08 凌雨尘 阅读(5) 评论(0) 推荐(0) 编辑