![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
以力扣平台为主线,介绍一些相应的知识,以及分享一些OJ题解等。
RichardLau_Cx
╭☆゛Nothing is impossible!Because the mountains are there.〆、
展开
-
283. 移动零 题解
题目地址 Python 实现(三种方法) # -*- coding: utf-8 -*- # @ Date : 2022/5/20 13:14 # @ Author : RichardLau_Cx # @ File : Richard.py # @ IDE : PyCharm # @ Source : leetcode class Solution: def moveZeroes(self, nums: List[int]) -> None: "".原创 2022-03-22 21:32:33 · 142 阅读 · 0 评论 -
19. 删除链表的倒数第 N 个结点 题解
解题思路 算法思想:快慢指针法:先将二者形成n的距离差,然后同时等速前进,到达最终位置时,慢指针指向的下一个位置,即是目标要倒数n个位置之后的结点。 代码 C++实现 // -*- coding: utf-8 -*- // @ Date : 2021/5/20 13:14 // @ Author : RichardLau_Cx // @ file : Richard.cpp // @ IDE : Dev-C++ // @ Source : leetcode /** * D原创 2021-11-12 15:38:01 · 448 阅读 · 0 评论 -
143. 重排链表 题解
C++ 实现 // -*- coding: utf-8 -*- // @ Date : 2021/5/20 13:14 // @ Author : RichardLau_Cx // @ file : Richard.cpp // @ IDE : Dex-C++ // @ Source : leetcode /** * Definition for singly-linked list. * struct ListNode { * int val; * L.原创 2021-11-06 14:27:03 · 130 阅读 · 0 评论