Engineering

A collection of 29 posts

record.image

Engineering

Tree-Shaking

經常在打包的時候聽到,引入了 Tree-Shaking 來減少 bundle size。且每次談到打包的性能優化時,總會提到這個詞,那麼到底什麼是 Tree Shaking 呢?

author.image
6 min
record.image

Engineering

HTTP Cache 機制與複習

常常網站改版後,卻被 PM DESIGN 問說怎麼沒更新嗎?其實就是 cache 搞的鬼~

author.image
2 min
record.image

Engineering

[LeetCode][Easy] 27. Remove Element

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed.

author.image
2 min
record.image

Engineering

[LeetCode][Easy] 28. Implement strStr()

Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

author.image
1 min
record.image

Engineering

[LeetCode][Medium] 89. Gray Code

An n-bit gray code sequence is a sequence of 2n integers where

author.image
1 min
record.image

Engineering

[LeetCode][Medium] 77. Combinations

Given two integers n and k, return all possible combinations of k numbers out of the range [1, n].

author.image
1 min
record.image

Engineering

[LeetCode][Medium] 46. Permutations

Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order.

author.image
1 min
record.image

Engineering

[LeetCode][Medium] 63. Unique Paths II

A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).

author.image
1 min
record.image

Engineering

[LeetCode][Medium] 62. Unique Paths

A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).

author.image
1 min
record.image

Engineering

[LeetCode][Medium] 47. Permutations II

Given a collection of numbers, nums, that might contain duplicates, return all possible unique permutations in any order.

author.image
1 min