題目: You are given the heads of two sorted linked lists list1 and list2. Merge...
題目: Given the head of a sorted linked list, delete all duplicates such that eac...
題目: Given an integer array nums, return true if any value appears at least twic...
題目: The count-and-say sequence is a sequence of digit strings defined by the re...
題目: Given an integer array nums, find the contiguous subarray (containing at le...
題目: Given head, the head of a linked list, determine if the linked list has a c...
題目: Assume you are an awesome parent and want to give your children some cookie...
題目: Given an array nums of n integers where nums[i] is in the range [1, n], ret...
本來有點苦惱今天要刷哪幾題,結果早上就收到 Codewars 的 Weekly Coding Challenges 的信件~就決定是尼了!洨智(X) (圖源來自...
題目: You are given an integer array height of length n. There are n vertical lin...
題目: Given an integer numRows, return the first numRows of Pascal's triangle....
題目: Given a string s, find the first non-repeating character in it and return i...
題目: Given a string s, return the longest palindromic substring in s. 給定一個字串,找出...
題目: Given the root of a binary tree, return the postorder traversal of its node...
分享刷題的紀錄用的語言是 Javascript 第一題是經典 Two Sum Two Sum Given an array of integers nums ...
從今天起在此紀錄用python寫leetcode的心路歷程希望能以一天兩三題的速率下去更新讓自己的程式更加精進 題目: Given an array of i...
題目: Given a string containing digits from 2-9 inclusive, return all possible le...
題目: Given an integer n, return a string array answer (1-indexed) where: answe...
題目: The Hamming distance between two integers is the number of positions at whi...
題目: Given the root of a binary tree, check whether it is a mirror of itself (i....
題目: Given a string s consisting of words and spaces, return the length of the l...
題目: Given an integer num, repeatedly add all its digits until the result has on...
題目: Given an integer num, return a string representing its hexadecimal represen...
題目: Given a pattern and a string s, find if s follows the same pattern. Here...
題目: Given the root of a binary tree, return the preorder traversal of its nodes...
題目: Write a function that reverses a string. The input string is given as an ar...
好耶不知不覺就來到第100篇文了之後medium題的占比會越來越高吧慶祝一下就來繼續寫文了XD希望未來也能繼續持續下去 題目: Given a linked...
題目: Given the head of a singly linked list, reverse the list, and return the re...
題目: Given an integer array nums, move all 0's to the end of it while maintainin...
題目: You have n coins and you want to build a staircase with these coins. The st...