#

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實現(xiàn)strstr()

    自己寫的一個一個字符匹配的while循環(huán)是什么辣雞玩意,根本就過不了一些特殊測試集,哎,看官解吧。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移除元素 刪除有序數(shù)組重復元素

    這兩道題若是不使用官方題解的雙指針做法,就會涉及到淺復制,深復制的問題,可參考如下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)對于空鏈表或者一個節(jié)點鏈表無需反轉,返回即可。設計思路:1)首先把當前節(jié)點外的剩

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