iT邦幫忙

leetcode相關文章
共有 1089 則文章
鐵人賽 自我挑戰組 DAY 2

技術 Day 2 Search Insert Position

題目說明:給定一組排序過後的陣列和一個指定的值,如果該指定的值有被找到,則回傳該指定值的索引(Index),若沒有的話則回傳要該指定值要被插入的索引值。*演算法...

鐵人賽 自我挑戰組 DAY 1

技術 Day 1 Valid Parentheses

前言:刷題應該每位工程師面試都會遇到的一關,想透過這30天複習一下之前學校所學的內容,至於怎麼挑題完全是看自己的心情,那廢話不多說開始吧! 題目說明:給定一組字...

技術 LEETCODE 解題目思路與做專案的直接聯關連性, 網友詢問我

本篇同步登在我的個人網站內 網友問詢我,因為他本身是程式設計初學者,之前工作沒有寫過程式的經驗。他的問題:(1)剛開始學寫程式,很習慣的去參考解答再回頭理解題目...

技術 那些刷題背後的事

終於有時間來還債了。如果想知道自己的市場價值,最好的方法就是: 去面試。 蠻多人覺得刷大量題目是很必要的,但我遇到的面試官,大部分更著重在,過程的提問和分析問題...

技術 leetcode with python:39. Combination Sum

題目: Given an array of distinct integers candidates and a target integer target,...

技術 leetcode with python:495. Teemo Attacking

題目: Our hero Teemo is attacking an enemy Ashe with poison attacks! When Teemo a...

技術 leetcode with python:492. Construct the Rectangle

題目: A web developer needs to know how to design a web page's size. So, given a...

技術 leetcode with python:485. Max Consecutive Ones

題目: Given a binary array nums, return the maximum number of consecutive 1's in...

技術 leetcode with python:482. License Key Formatting

題目: You are given a license key represented as a string s that consists of only...

技術 leetcode with python:476. Number Complement

題目: The complement of an integer is the integer you get when you flip all the 0...

技術 leetcode with python:463. Island Perimeter

題目: You are given row x col grid representing a map where grid[i][j] = 1 repres...

技術 leetcode with python:461. Hamming Distance

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

技術 leetcode with python:38. Count and Say

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

技術 Leetcode 226. Invert Binary Tree 一分鐘解題法,中文解說

Leetcode 226. Invert Binary Tree 一分鐘解題法,中文解說Given the root of a binary tree, inv...

技術 leetcode with python:36. Valid Sudoku

題目: Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to b...

技術 leetcode with python:34. Find First and Last Position of Element in Sorted Array

題目: Given an array of integers nums sorted in non-decreasing order, find the st...

技術 leetcode with python:33. Search in Rotated Sorted Array

題目: There is an integer array nums sorted in ascending order (with distinct val...

技術 leetcode with python:31. Next Permutation

題目: A permutation of an array of integers is an arrangement of its members into...

技術 leetcode with python:459. Repeated Substring Pattern

題目: Given a string s, check if it can be constructed by taking a substring of i...

技術 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...

技術 leetcode with python:441. Arranging Coins

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

技術 leetcode with python:434. Number of Segments in a String

題目: Given a string s, return the number of segments in the string. A segment...

技術 leetcode with python:415. Add Strings

題目: Given two non-negative integers, num1 and num2 represented as string, retur...

技術 leetcode with python:414. Third Maximum Number

題目: Given an integer array nums, return the third distinct maximum number in th...

技術 leetcode with python:412. Fizz Buzz

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

技術 2341. Maximum Number of Pairs in Array, My C++ code is Accepted. 中文解說

Leetcode Weekly Contest 3022341. Maximum Number of Pairs in Array, My C++ code...

技術 我分享一下練習LEETCODE 撞牆期的心得

/練習 Leetcode 還是建議先看題目的解答,//*等待 Leetcode 撞牆期渡過了,再自已想解題的部份 */ version:2022070601 網...

技術 2342. Max Sum of a Pair With Equal Sum of Digits

重點在於: the sum of digits of the number nums[i] is equal to that of nums[j]. 這句英文,...

技術 leetcode with python:409. Longest Palindrome

題目: Given a string s which consists of lowercase or uppercase letters, return t...