JUST make some practice, In this repository questions came from leetcode
- Sudoku
- Trapping Rain Water
- Jump Game
- Jump Game II
- Multiply Strings
- Add Strings
- Swap Node In Pair
- Best Time to Buy and Sell Stock
- Best Time to Buy and Sell Stock II
- Remove Duplicates from Sorted Array
- Numbers Of Island
- House Robber
- Keys And Rooms
- Dungeon Game
- Count And Say
- Gas Station
- Basic Calculator II
- Rotate Image
- Sort Colors
- Binary Gap
- Advantage Shuffle
- Super Egg Drop
- Uncommon Words from Two Sentences
- Boats to Save People
- Koko Eating Bananas
- Largest Triangle Area
- Fair Candy Swap
- Find and Replace Pattern
- Minimum Number of Refueling Stops
- Masking Personal Information
- Positions of Large Groups
- Surface Area of 3D Shapes
- Sum of Subsequence Widths
- Dota2 Senate
- Two Sum
- Add Two Numbers
- Longest Valid Parentheses
- Valid Parentheses
- Score Of Parentheses
- Minimum Increment to Make Array Unique
- Perfect Squares
- Buddy Strings
- Insert Interval
- Merge Intervals
- Partition Labels
- Find the Duplicate Number
- Missing Number
- Teemo Attacking
- Can Place Flowers
- Find the Town Judge
- Binary Number with Alternating Bits
- Divide Two Integers
- Repeated Substring Pattern
- Monotonic Array
- Fruit Into Baskets
- Sum of Subarray Minimums
- Sort Array By Parity
- Reverse Only Letters
- Squares of a Sorted Array
- String Without AAA or BBB
- Available Captures for Rook
- Find Common Characters
- Rotting Oranges
- Powerful Integers
- Cousins in Binary Tree
- Complement of Base 10 Integer
- Best Sightseeing Pair
- Capacity To Ship Packages Within D Days
- Camelcase Matching
- Two City Scheduling
- Uncrossed Lines
- Moving Stones Until Consecutive
- Flower Planting With No Adjacent
- Occurrences After Bigram
- Car Pooling
- Corporate Flight Bookings
- Defanging an IP Address
- Distribute Candies to People
- Alphabet Board Path
- As Far from Land as Possible
- Last Substring in Lexicographical Order
- Find Words That Can Be Formed by Characters
- Invalid Transactions
- Distance Between Bus Stops
- Minimum Absolute Difference
- Unique Number of Occurrences
- Path with Maximum Gold
- Count Vowels Permutation
- Split a String in Balanced Strings
- Queens That Can Attack the King
- Remove Sub-Folders from the Filesystem
- Check If It Is a Straight Line
- Minimum Remove to Make Valid Parentheses
- Number of Closed Islands
- Cells with Odd Values in a Matrix
- Shift 2D Grid
- Search Suggestions System
- Count Servers that Communicate
# 运行单元测试
make test
# 单元测试并且生成测试覆盖报告
make coverage
# 单元测试并且测试覆盖HTML页面
make coverhtml
run.test.sh脚本,参数一设置目录
./run.test.sh rain
# 创建docker容器
./docker.sh install
# 进入docker容器
./docker.sh enter
# 在容器中运行命令
cd /go/src/go-kata-practice
make coverhtml
# 或者
./docker.sh test