halfrost / LeetCode-Go

✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
https://books.halfrost.com/leetcode
MIT License
32.76k stars 5.68k forks source link

fix/48: clean up code #133

Closed novahe closed 3 years ago

novahe commented 3 years ago
  1. use go syntax instead of tmp variables
  2. In the question, the length of the matrix is ​​equal to the width

note: matrix.length == n matrix[i].length == n

codecov-commenter commented 3 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@851946d). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #133   +/-   ##
=========================================
  Coverage          ?   71.90%           
=========================================
  Files             ?      681           
  Lines             ?    12058           
  Branches          ?        0           
=========================================
  Hits              ?     8670           
  Misses            ?     3078           
  Partials          ?      310           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 851946d...bb50f33. Read the comment docs.