LeetCode
文章平均质量分 74
Karen_Yu_
这个作者很懒,什么都没留下…
展开
-
24. Swap Nodes in Pairs (Python)
MediumGiven alinked list, swap every two adjacent nodes and return its head. You must solve the problem withoutmodifying the values in the list's nodes (i.e., only nodes themselves may be changed.)Example 1:Input: head = [1,2,3,4]Output: [2...原创 2022-01-05 04:48:18 · 201 阅读 · 0 评论 -
807. Max Increase to Keep City Skyline (Python)
MediumThere is a city composed ofn x nblocks, where each block contains a single building shaped like a vertical square prism. You are given a0-indexedn x ninteger matrixgridwheregrid[r][c]represents theheightof the building located in the b...原创 2021-12-30 02:56:45 · 565 阅读 · 0 评论