iT邦幫忙

leetcode相關文章
共有 1100 則文章

技術 Leet Code 9. Palindrome Number

題目Determine whether an integer is a palindrome. Do this without extra space. Som...

鐵人賽 Software Development DAY 2

技術 Day 02:闖入 leetcode 世界的不速之客:2235. Add Two Integers

「哈囉兩位!今天我們來寫 leetcode 吧!」夏天開心的說。 「夏姐,我們又不是要去 Google 還是 Meta 工作,有必要現在刷 leetcode 嗎...

鐵人賽 Software Development DAY 2

技術 Day02: 僅此一次的資料庫題目

學妹不愧是年輕人,動作真快,一下子就把麵條吃完跑去電腦前了,我要慢慢的品嚐麵的滋味,天知道還有沒有下一頓。 「學姊,這題沒有Kotlin可以選。」學妹跑過來拉我...

鐵人賽 Software Development DAY 1

技術 Day 01:在丹提咖啡的聚會

「你好⋯⋯你也是來找夏天姐,學怎麼寫程式的嗎?」曉欣一進到丹提咖啡,看到獨自用著筆電的人,試探地問看看。 「嗨!我是來找夏姐的沒錯,不過我之前就已經會寫程式囉!...

鐵人賽 自我挑戰組 DAY 7

技術 Day 7 Two Sum

今天有點累,只好來寫一個最基本的two sum 題目說明:給一個陣列和一個目標數,要你求出哪個數字所在的索引(index)可以相加等於目標數 Case 1Inp...

鐵人賽 自我挑戰組 DAY 6

技術 Day 6 Excel Sheet Column Number

題目:給定一個欄位的字串,要求出對應到的是第幾欄 Excel欄位命名的規則如下:A -> 1B -> 2C -> 3...Z -> 26...

鐵人賽 自我挑戰組 DAY 5

技術 Day 5 Same Tree

題目說明:給定兩棵樹,要判斷兩棵樹是否相等 Case 1Input: p = [1,2,3], q = [1,2,3]Output: true Case 2In...

鐵人賽 Software Development DAY 1

技術 Day01: 神奇的Leetcode出現了!

考完期末考試,大家都迫不及待去補個覺或是呼朋引伴去唱卡拉OK,好好犒賞自己。 我也想回去補漫畫進度,但是誰能告訴我,我為什麼會和一個小大一困在一個啥都沒有的白色...

鐵人賽 Software Development DAY 1

達標好文 技術 Intro / 香香外商面試秘笈 / 踏破鐵鞋無覓處 搞定coding interview

(先講重點不然快十萬字的系列文可能會被end)筆者約莫6年工作經驗台大電機系學士+電子所碩士BS畢業名次大概是系上25%左右畢業之後一直待在某外商打滾最近換工作...

鐵人賽 自我挑戰組 DAY 4

技術 Day 4 Unique Paths

題目說明:給定一個m*n的陣列,要你求出有多少唯一可以從左上走到右下的路徑方法。每次只能往下或往右走 解題思路:這其實跟國中或國小的數學題有點類似,就是求有幾種...

鐵人賽 自我挑戰組 DAY 3

技術 Day 3 Remove Duplicates from Sorted List

題目說明:給定一個排序過後的Linked list,要你移除掉重複的部分 Case 1:Input: head = [1,1,2]Output: [1,2]。原...

鐵人賽 自我挑戰組 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...