From 913ab5e1c6fac41cc5d94189578dc418a34815f7 Mon Sep 17 00:00:00 2001 From: tangweikun <819573105@qq.com> Date: Sun, 20 May 2018 13:11:35 +0800 Subject: [PATCH] :truck: Rename folder --- README.md | 10 +++++----- src/{01Matrix => 01-matrix}/README.md | 0 src/{01Matrix => 01-matrix}/index.ts | 0 src/{01Matrix => 01-matrix}/test.ts | 0 .../README.md | 0 .../index.ts | 0 .../test.ts | 0 src/{2KeysKeyboard => 2-keys-keyboard}/README.md | 0 src/{2KeysKeyboard => 2-keys-keyboard}/index.ts | 0 src/{2KeysKeyboard => 2-keys-keyboard}/pro.ts | 0 src/{2KeysKeyboard => 2-keys-keyboard}/test.ts | 0 src/{3SumClosest => 3sum-closest}/README.md | 0 src/{3SumClosest => 3sum-closest}/index.ts | 0 src/{3SumClosest => 3sum-closest}/test.ts | 0 src/{4Sum2 => 4sum-ii}/README.md | 0 src/{4Sum2 => 4sum-ii}/index.ts | 0 src/{4Sum2 => 4sum-ii}/test.ts | 0 src/index.ts | 6 ------ 18 files changed, 5 insertions(+), 11 deletions(-) rename src/{01Matrix => 01-matrix}/README.md (100%) rename src/{01Matrix => 01-matrix}/index.ts (100%) rename src/{01Matrix => 01-matrix}/test.ts (100%) rename src/{1bitAnd2bitCharacters => 1-bit-and-2-bit-characters}/README.md (100%) rename src/{1bitAnd2bitCharacters => 1-bit-and-2-bit-characters}/index.ts (100%) rename src/{1bitAnd2bitCharacters => 1-bit-and-2-bit-characters}/test.ts (100%) rename src/{2KeysKeyboard => 2-keys-keyboard}/README.md (100%) rename src/{2KeysKeyboard => 2-keys-keyboard}/index.ts (100%) rename src/{2KeysKeyboard => 2-keys-keyboard}/pro.ts (100%) rename src/{2KeysKeyboard => 2-keys-keyboard}/test.ts (100%) rename src/{3SumClosest => 3sum-closest}/README.md (100%) rename src/{3SumClosest => 3sum-closest}/index.ts (100%) rename src/{3SumClosest => 3sum-closest}/test.ts (100%) rename src/{4Sum2 => 4sum-ii}/README.md (100%) rename src/{4Sum2 => 4sum-ii}/index.ts (100%) rename src/{4Sum2 => 4sum-ii}/test.ts (100%) diff --git a/README.md b/README.md index 801e645..1be6632 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ npm run test // also you can run `npm run watch` | 107 | [ComplexNumberMultiplication](src/complexNumberMultiplication/index.ts) | [:green_book:](src/complexNumberMultiplication/README.md) | Medium | [LeetCode](https://leetcode.com/problems/maximum-product-of-three-numbers) | Math | | 108 | [UglyNumber2](src/uglyNumber2/index.ts) | [:green_book:](src/uglyNumber2/README.md) | Medium | [LeetCode](https://leetcode.com/problems/maximum-product-of-three-numbers) | Math, DP | | 109 | [ValidSquare](src/validSquare/index.ts) | [:green_book:](src/validSquare/README.md) | Medium | [LeetCode](https://leetcode.com/problems/valid-square) | Math | -| 110 | [1bitAnd2bitCharacters](src/1bitAnd2bitCharacters/index.ts) | [:green_book:](src/1bitAnd2bitCharacters/README.md) | Easy | [LeetCode](https://leetcode.com/problems/1-bit-and-2-bit-characters) | Array | +| 110 | [1-bit-and-2-bit-characters](src/1-bit-and-2-bit-characters/index.ts) | [:green_book:](src/1-bit-and-2-bit-characters/README.md) | Easy | [LeetCode](https://leetcode.com/problems/1-bit-and-2-bit-characters) | Array | | 111 | [CanPlaceFlowers](src/canPlaceFlowers/index.ts) | [:green_book:](src/canPlaceFlowers/README.md) | Easy | [LeetCode](https://leetcode.com/problems/can-place-flowers) | Array | | 112 | [FindAllNumbersDisappearedInAnArray](src/findAllNumbersDisappearedInAnArray/index.ts) | [:green_book:](src/findAllNumbersDisappearedInAnArray/README.md) | Easy | [LeetCode](https://leetcode.com/problems/find-all-numbers-disappeared-in-an-array) | Array | | 113 | [ContainerWithMostWater](src/containerWithMostWater/index.ts) | [:green_book:](src/containerWithMostWater/README.md) | Medium | [LeetCode](https://leetcode.com/problems/container-with-most-water) | Array | @@ -200,10 +200,10 @@ npm run test // also you can run `npm run watch` | 162 | [ProductOfArrayExceptSelf](src/productOfArrayExceptSelf/index.ts) | [:green_book:](src/productOfArrayExceptSelf/README.md) | Medium | [LeetCode](https://leetcode.com/problems/product-of-array-except-self) | Array | | 163 | [TeemoAttacking](src/teemoAttacking/index.ts) | [:green_book:](src/teemoAttacking/README.md) | Medium | [LeetCode](https://leetcode.com/problems/teemo-attacking) | Array | | 164 | [QueueReconstructionByHeight](src/queueReconstructionByHeight/index.ts) | [:green_book:](src/queueReconstructionByHeight/README.md) | Medium | [LeetCode](https://leetcode.com/problems/queue-reconstruction-by-height) | Greedy | -| 165 | [4Sum2](src/4Sum2/index.ts) | [:green_book:](src/4Sum2/README.md) | Medium | [LeetCode](https://leetcode.com/problems/4sum-ii) | HashTable | -| 166 | [01Matrix](src/01Matrix/index.ts) | [:green_book:](src/01Matrix/README.md) | Medium | [LeetCode](https://leetcode.com/problems/01-matrix) | HashTable | +| 165 | [4sum-ii](src/4sum-ii/index.ts) | [:green_book:](src/4sum-ii/README.md) | Medium | [LeetCode](https://leetcode.com/problems/4sum-ii) | HashTable | +| 166 | [01-matrix](src/01-matrix/index.ts) | [:green_book:](src/01-matrix/README.md) | Medium | [LeetCode](https://leetcode.com/problems/01-matrix) | HashTable | | 167 | [3sum](src/3sum/index.ts) | [:green_book:](src/3sum/README.md) | Medium | [LeetCode](https://leetcode.com/problems/3sum) | TwoPointers | -| 168 | [3SumClosest](src/3SumClosest/index.ts) | [:green_book:](src/3SumClosest/README.md) | Medium | [LeetCode](https://leetcode.com/problems/3sum-closest) | TwoPointers | +| 168 | [3sum-closest](src/3sum-closest/index.ts) | [:green_book:](src/3sum-closest/README.md) | Medium | [LeetCode](https://leetcode.com/problems/3sum-closest) | TwoPointers | | 169 | [4Sum](src/4Sum/index.ts) | [:green_book:](src/4Sum/README.md) | Medium | [LeetCode](https://leetcode.com/problems/4sum) | TwoPointers | | 170 | [AddTwoNumbers](src/addTwoNumbers/index.ts) | [:green_book:](src/addTwoNumbers/README.md) | Medium | [LeetCode](https://leetcode.com/problems/add-two-numbers) | LinkedList | | 171 | [AddTwoNumbers2](src/addTwoNumbers2/index.ts) | [:green_book:](src/addTwoNumbers2/README.md) | Medium | [LeetCode](https://leetcode.com/problems/add-two-numbers-ii) | LinkedList | @@ -254,7 +254,7 @@ npm run test // also you can run `npm run watch` | 216 | [BestTimetoBuyAndSellStockWithTransactionFee](src/bestTimetoBuyAndSellStockWithTransactionFee/index.ts) | [:green_book:](src/bestTimetoBuyAndSellStockWithTransactionFee/README.md) | Medium | [LeetCode](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee) | DP,Greedy | | 217 | [ShoppingOffers](src/shoppingOffers/index.ts) | [:green_book:](src/shoppingOffers/README.md) | Medium | [LeetCode](https://leetcode.com/problems/shopping-offers) | DP,DFS | | 218 | [PredictTheWinner](src/predictTheWinner/index.ts) | [:green_book:](src/predictTheWinner/README.md) | Medium | [LeetCode](https://leetcode.com/problems/predict-the-winner) | DP | -| 219 | [2KeysKeyboard](src/2KeysKeyboard/index.ts) | [:green_book:](src/2KeysKeyboard/README.md) | Medium | [LeetCode](https://leetcode.com/problems/2-keys-keyboard) | DP | +| 219 | [2-keys-keyboard](src/2-keys-keyboard/index.ts) | [:green_book:](src/2-keys-keyboard/README.md) | Medium | [LeetCode](https://leetcode.com/problems/2-keys-keyboard) | DP | | 220 | [IsSubsequence](src/isSubsequence/index.ts) | [:green_book:](src/isSubsequence/README.md) | Medium | [LeetCode](https://leetcode.com/problems/is-subsequence) | DP | | 221 | [delete-and-earn](src/delete-and-earn/index.ts) | [:green_book:](src/delete-and-earn/README.md) | Medium | [LeetCode](https://leetcode.com/problems/delete-and-earn) | DP | | 222 | [unique-paths](src/unique-paths/index.ts) | [:green_book:](src/unique-paths/README.md) | Medium | [LeetCode](https://leetcode.com/problems/unique-paths) | DP | diff --git a/src/01Matrix/README.md b/src/01-matrix/README.md similarity index 100% rename from src/01Matrix/README.md rename to src/01-matrix/README.md diff --git a/src/01Matrix/index.ts b/src/01-matrix/index.ts similarity index 100% rename from src/01Matrix/index.ts rename to src/01-matrix/index.ts diff --git a/src/01Matrix/test.ts b/src/01-matrix/test.ts similarity index 100% rename from src/01Matrix/test.ts rename to src/01-matrix/test.ts diff --git a/src/1bitAnd2bitCharacters/README.md b/src/1-bit-and-2-bit-characters/README.md similarity index 100% rename from src/1bitAnd2bitCharacters/README.md rename to src/1-bit-and-2-bit-characters/README.md diff --git a/src/1bitAnd2bitCharacters/index.ts b/src/1-bit-and-2-bit-characters/index.ts similarity index 100% rename from src/1bitAnd2bitCharacters/index.ts rename to src/1-bit-and-2-bit-characters/index.ts diff --git a/src/1bitAnd2bitCharacters/test.ts b/src/1-bit-and-2-bit-characters/test.ts similarity index 100% rename from src/1bitAnd2bitCharacters/test.ts rename to src/1-bit-and-2-bit-characters/test.ts diff --git a/src/2KeysKeyboard/README.md b/src/2-keys-keyboard/README.md similarity index 100% rename from src/2KeysKeyboard/README.md rename to src/2-keys-keyboard/README.md diff --git a/src/2KeysKeyboard/index.ts b/src/2-keys-keyboard/index.ts similarity index 100% rename from src/2KeysKeyboard/index.ts rename to src/2-keys-keyboard/index.ts diff --git a/src/2KeysKeyboard/pro.ts b/src/2-keys-keyboard/pro.ts similarity index 100% rename from src/2KeysKeyboard/pro.ts rename to src/2-keys-keyboard/pro.ts diff --git a/src/2KeysKeyboard/test.ts b/src/2-keys-keyboard/test.ts similarity index 100% rename from src/2KeysKeyboard/test.ts rename to src/2-keys-keyboard/test.ts diff --git a/src/3SumClosest/README.md b/src/3sum-closest/README.md similarity index 100% rename from src/3SumClosest/README.md rename to src/3sum-closest/README.md diff --git a/src/3SumClosest/index.ts b/src/3sum-closest/index.ts similarity index 100% rename from src/3SumClosest/index.ts rename to src/3sum-closest/index.ts diff --git a/src/3SumClosest/test.ts b/src/3sum-closest/test.ts similarity index 100% rename from src/3SumClosest/test.ts rename to src/3sum-closest/test.ts diff --git a/src/4Sum2/README.md b/src/4sum-ii/README.md similarity index 100% rename from src/4Sum2/README.md rename to src/4sum-ii/README.md diff --git a/src/4Sum2/index.ts b/src/4sum-ii/index.ts similarity index 100% rename from src/4Sum2/index.ts rename to src/4sum-ii/index.ts diff --git a/src/4Sum2/test.ts b/src/4sum-ii/test.ts similarity index 100% rename from src/4Sum2/test.ts rename to src/4sum-ii/test.ts diff --git a/src/index.ts b/src/index.ts index d151211..a263133 100644 --- a/src/index.ts +++ b/src/index.ts @@ -104,7 +104,6 @@ export * from './maximumProductOfThreeNumbers' export * from './complexNumberMultiplication' export * from './uglyNumber2' export * from './validSquare' -export * from './1bitAnd2bitCharacters' export * from './canPlaceFlowers' export * from './findAllNumbersDisappearedInAnArray' export * from './containerWithMostWater' @@ -154,11 +153,6 @@ export * from './rotateString' export * from './productOfArrayExceptSelf' export * from './teemoAttacking' export * from './queueReconstructionByHeight' -export * from './4Sum2' -export * from './01Matrix' -export * from './3Sum' -export * from './3SumClosest' -export * from './4Sum' export * from './addTwoNumbers' export * from './addTwoNumbers2' export * from './additiveNumber'