Given an array nums
of n integers, are there elements a, b, c in nums
such that a+ b + c = 0? Find all unique triplets in the array which gives the sum of zero.
【LeetCode】0014. Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.
【LeetCode】0013. Roman to Integer
Roman numerals are represented by seven different symbols: I
, V
, X
, L
, C
, D
and M
.
【LeetCode】0012. Integer to Roman
Roman numerals are represented by seven different symbols: I
, V
, X
, L
, C
, D
and M
.
【LeetCode】0011. Container With Most Water
Given n non-negative integers $a_1, a_2, …, a_n$ , where each represents a point at coordinate $(i, a_i)$. n vertical lines are drawn such that the two endpoints of line i is at $(i, a_i)$ and $(i, 0)$. Find two lines, which together with x-axis forms a container, such that the container contains the most water.
【LeetCode】0009. Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
【LeetCode】0008. String to Integer (atoi)
Implement atoi
which converts a string to an integer.
【LeetCode】0007. Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer.
【Git】修改 Git commits 的作者資訊
前一陣子,用公司電腦寫自己的 code,結果…啊啊啊啊, git 的作者資訊顯示的是公司帳號阿 QAQ
原本想說回家後,用 git cherry-pick
一個 commit 一個 commit 搬移後,再重新 commit。結果發現…靠!有將近 20 個 commit ,這樣搬會瘋掉的。
【Vue.js 學習筆記】10. Vue Router
本節內容包含下述子章節:
- 使用 Vue Router 及配置路由文件
- 新增路由路徑及連結
- 製作巢狀路由頁面
- 使用動態路由切換頁面 Ajax 結果
- 命名路由,同一個路徑載入兩個頁面元件
- Vue Router 參數設定
- 自定義切換路由方法