iT邦幫忙

刷題相關文章
共有 162 則文章

技術 leetcode with python:21. Merge Two Sorted Lists

題目: You are given the heads of two sorted linked lists list1 and list2. Merge...

技術 leetcode with python:83. Remove Duplicates from Sorted List

題目: Given the head of a sorted linked list, delete all duplicates such that eac...

技術 leetcode with python:217. Contains Duplicate

題目: Given an integer array nums, return true if any value appears at least twic...

技術 leetcode with python:38. Count and Say

題目: The count-and-say sequence is a sequence of digit strings defined by the re...

技術 leetcode with python:53. Maximum Subarray

題目: Given an integer array nums, find the contiguous subarray (containing at le...

技術 leetcode with python:141. Linked List Cycle

題目: Given head, the head of a linked list, determine if the linked list has a c...

技術 leetcode with python:455. Assign Cookies

題目: Assume you are an awesome parent and want to give your children some cookie...

技術 leetcode with python:448. Find All Numbers Disappeared in an Array

題目: Given an array nums of n integers where nums[i] is in the range [1, n], ret...

鐵人賽 自我挑戰組 DAY 2

技術 Day01|Weekly Coding Challenges

本來有點苦惱今天要刷哪幾題,結果早上就收到 Codewars 的 Weekly Coding Challenges 的信件~就決定是尼了!洨智(X) (圖源來自...

技術 leetcode with python:11. Container With Most Water

題目: You are given an integer array height of length n. There are n vertical lin...

技術 leetcode with python:118. Pascal's Triangle

題目: Given an integer numRows, return the first numRows of Pascal's triangle....

技術 leetcode with python:387. First Unique Character in a String

題目: Given a string s, find the first non-repeating character in it and return i...

技術 leetcode with python:5. Longest Palindromic Substring

題目: Given a string s, return the longest palindromic substring in s. 給定一個字串,找出...

技術 leetcode with python:145. Binary Tree Postorder Traversal

題目: Given the root of a binary tree, return the postorder traversal of its node...

鐵人賽 Software Development DAY 0

技術 刷題紀錄 1: Two Sum

分享刷題的紀錄用的語言是 Javascript 第一題是經典 Two Sum Two Sum Given an array of integers nums ...

技術 leetcode with python:1. Two Sum

從今天起在此紀錄用python寫leetcode的心路歷程希望能以一天兩三題的速率下去更新讓自己的程式更加精進 題目: Given an array of i...

技術 leetcode with python:17. Letter Combinations of a Phone Number

題目: Given a string containing digits from 2-9 inclusive, return all possible le...

技術 leetcode with python:412. Fizz Buzz

題目: Given an integer n, return a string array answer (1-indexed) where: answe...

技術 leetcode with python:461. Hamming Distance

題目: The Hamming distance between two integers is the number of positions at whi...

技術 leetcode with python:101. Symmetric Tree

題目: Given the root of a binary tree, check whether it is a mirror of itself (i....

技術 leetcode with python:58. Length of Last Word

題目: Given a string s consisting of words and spaces, return the length of the l...

技術 leetcode with python:258. Add Digits

題目: Given an integer num, repeatedly add all its digits until the result has on...

技術 leetcode with python:405. Convert a Number to Hexadecimal

題目: Given an integer num, return a string representing its hexadecimal represen...

技術 leetcode with python:290. Word Pattern

題目: Given a pattern and a string s, find if s follows the same pattern. Here...

技術 leetcode with python:144. Binary Tree Preorder Traversal

題目: Given the root of a binary tree, return the preorder traversal of its nodes...

技術 leetcode with python:344. Reverse String

題目: Write a function that reverses a string. The input string is given as an ar...

技術 leetcode with python:24. Swap Nodes in Pairs

好耶不知不覺就來到第100篇文了之後medium題的占比會越來越高吧慶祝一下就來繼續寫文了XD希望未來也能繼續持續下去 題目: Given a linked...

技術 leetcode with python:206. Reverse Linked List

題目: Given the head of a singly linked list, reverse the list, and return the re...

技術 leetcode with python:283. Move Zeroes

題目: Given an integer array nums, move all 0's to the end of it while maintainin...

技術 leetcode with python:441. Arranging Coins

題目: You have n coins and you want to build a staircase with these coins. The st...