xinyu04

导航

2022年8月3日 #

LeetCode 117 Populating Next Right Pointers in Each Node II

摘要: Given a binary tree struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to its next right node. If there 阅读全文

posted @ 2022-08-03 16:00 Blackzxy 阅读(16) 评论(0) 推荐(0) 编辑

MathProblem 85 Five pirates and a 1000 coins problem

摘要: Five pirates have come across a treasure of 1000 coins. According to pirate rules the pirate of highest rank must make a suggestion on how to divide t 阅读全文

posted @ 2022-08-03 06:25 Blackzxy 阅读(12) 评论(0) 推荐(0) 编辑

MathProblem 83 To confess or not confess problem

摘要: You and your partner in crime are both arrested and questioned separately. You are offered a chance to confess, in which you agree to testify against 阅读全文

posted @ 2022-08-03 05:35 Blackzxy 阅读(11) 评论(0) 推荐(0) 编辑

LeetCode 239 Sliding Window Maximum 单调队列 [Hard]

摘要: You are given an array of integers nums, there is a sliding window of size $k$ which is moving from the very left of the array to the very right. You 阅读全文

posted @ 2022-08-03 02:27 Blackzxy 阅读(9) 评论(0) 推荐(0) 编辑