原创 Leetcode算法學習日誌-737 Sentence Similarity II

Leetcode 737 Sentence Similarity 題目原文 Given two sentences words1, words2 (each represented as an array of strings), an

原创 Leetcode算法學習日誌-394 Decode String

Leetcode 394 Decode String 題目原文 Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_s

原创 Leetcode算法學習日誌-594 Longest Harmonious Subsequence

Leetcode 594 Longest Harmonious Subsequence 題目原文 We define a harmonious array is an array where the difference between

原创 Leetcode算法學習日誌-309 Best Time to Buy and Sell Stock with Cooldown

Leetcode 309 Best Time to Buy and Sell Stock with Cooldown 題目原文 Say you have an array for which the ith element is the

原创 Leetcode算法學習日誌-386 Lexicographical Numbers

Leetcode 386 Lexicographical Numbers 題目原文 Given an integer n, return 1 - n in lexicographical order. For example, give

原创 Leetcode算法學習日誌-738 Monotone Increasing Digits

Leetcode 738 Monotone Increasing Digits 題目原文 Given a non-negative integer N, find the largest number that is less than

原创 Leetcode算法學習日誌-436 Find Right Interval

Leetcode 436 Find Right Interval 題目原文 Given a set of intervals, for each of the interval i, check if there exists an i

原创 編碼理論中所需代數知識總結

編碼理論中所需代數知識總結 一、羣 1、一個定義了二元運算*的集合G如果滿足如下條件,則稱之爲羣。 二元運算*滿足結合律存在單位元e,使得a*e=e*a=a對於G中任意元素a,存在逆元a‘,使得a*a'=a'*a=e如果二元運算*滿足交換

原创 Leetcode算法學習日誌-89 Gray Code

Leetcode 89 Gray Code 題目原文 The gray code is a binary numeral system where two successive values differ in only one bit

原创 Leetcode算法學習日誌-525 Contiguous Array

Leetcode 525 Contiguous Array 題目原文 Given a binary array, find the maximum length of a contiguous subarray with equal n

原创 Leetcode算法學習日誌-399 Evaluate Division

Leetcode 399 Evaluate Division 題目原文 Equations are given in the format A / B = k, where A and B are variables represent

原创 Leetcode算法學習日誌-718 Maximum Length of Repeated Subarray

Leetcode 718 Maximum Length of Repeated Subarray 題目原文 Given two integer arrays A and B, return the maximum length of

原创 Atcoder FT robot解題報告

Atcoder FT robot解題報告 題目原文 A robot is put at the origin in a two-dimensional plane.Initially, the robot is facing in t

原创 Leetcode算法學習日誌-48 Rotate Image

Leetcode 48 Rotate Image 題目原文 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (

原创 Leetcode算法學習日誌-202 Happy Number

Leetcode 202 Happy Number 題目原文 Write an algorithm to determine if a number is "happy". A happy number is a number defi