iT邦幫忙

鐵人檔案

第 11 屆 iThome 鐵人賽
回列表
Software Development

LeetCode刷題日記 系列

紀錄LeetCode刷題及技巧

參賽天數 3 天 | 共 30 篇文章 | 9 人訂閱 訂閱系列文 RSS系列文
DAY 3

【Day 11】#19 - Remove Nth Node From End of List

Given a linked list, remove the n-th node from the end of list and return its he...

2019-09-26 ‧ 由 hyj1116 分享
DAY 3

【Day 12】#5 - Longest Palindromic Substring

Given a string s, find the longest palindromic substring in s. You may assume th...

2019-09-27 ‧ 由 hyj1116 分享
DAY 3

【Day 13】#200 - Number of Islands

Given a 2d grid map of '1's (land) and '0's (water), count the number of islands...

2019-09-28 ‧ 由 hyj1116 分享
DAY 3

【Day 14】#1189 - Maximum Number of Balloons

Given a string text, you want to use the characters of text to form as many inst...

2019-09-29 ‧ 由 hyj1116 分享
DAY 3

【Day 15】#15 - 3Sum

Given an array nums of n integers, are there elements a, b, c in nums such that...

2019-09-30 ‧ 由 hyj1116 分享
DAY 3

【Day 16】#21 - Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should b...

2019-10-02 ‧ 由 hyj1116 分享
DAY 3

【Day 17】#20 - Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', d...

2019-10-02 ‧ 由 hyj1116 分享
DAY 3

【Day 18】#14 - Longest Common Prefix

Write a function to find the longest common prefix string amongst an array of st...

2019-10-03 ‧ 由 hyj1116 分享
DAY 3

【Day 19】#34 - Find First and Last Position of Element in Sorted Array

Given an array of integers nums sorted in ascending order, find the starting and...

2019-10-04 ‧ 由 hyj1116 分享
DAY 3

【Day 20】#226 - Invert Binary Tree

Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3...

2019-10-06 ‧ 由 hyj1116 分享