#

leet

  • [LeetCode]24. Swap Nodes in Pairs

    Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->

    作者:風子余
    2020-10-20 09:30:40
  • 每日一题之 LeetCode实现strstr()

    自己写的一个一个字符匹配的while循环是什么辣鸡玩意,根本就过不了一些特殊测试集,哎,看官解吧。class Solution:def strStr(self, haystack, needle):&

    作者:浅唱cory
    2020-09-14 09:53:38
  • [LeetCode]2. Add Two Numbers

    You are given two linked lists representing two non-negative numbers. The digits are stored in rever

    作者:風子余
    2020-08-11 05:18:01
  • LeetCode001 Two Sum C语言

    1.Given an array of integers, return indices of the two

    作者:努力的C
    2020-08-03 21:46:47
  • 每日一题之LeetCode移除元素 删除有序数组重复元素

    这两道题若是不使用官方题解的双指针做法,就会涉及到浅复制,深复制的问题,可参考如下https://blog.csdn.net/qq_32907349/article/details/52190796

    作者:浅唱cory
    2020-08-01 03:22:33
  • [LeetCode]82. Remove Duplicates from Sorted List II

    Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct

    作者:風子余
    2020-07-28 15:37:38
  • [LeetCode]32. Longest Valid Parentheses

    32. Longest Valid ParenthesesGiven a string containing just the characters '(' and ')

    作者:風子余
    2020-07-25 21:28:38
  • [LeetCode]54. Spiral Matrix

    54. Spiral MatrixGiven a matrix of m x n elements (m rows, n colu

    作者:風子余
    2020-07-23 02:34:10
  • 53. Maximum Subarray

    53. Maximum SubarrayFind the contiguous subarray within an array (containing at least one number) wh

    作者:風子余
    2020-07-17 04:10:41
  • [LeetCode]206. Reverse Linked List

    206. Reverse Linked ListReverse a singly linked list.反转链表:1)对于空链表或者一个节点链表无需反转,返回即可。设计思路:1)首先把当前节点外的剩

    作者:風子余
    2020-07-11 09:34:23