Skip to content

Commit e44a469

Browse files
aQuaaQua
authored andcommitted
helper 在计算完成率的时候,扣除了无法完成的题目。
1 parent 82b44e4 commit e44a469

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helper.v4/readme.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ func makeREADME(lc *leetcode) {
2525
headFormat := string(read("README_HEAD.md"))
2626
head := fmt.Sprintf(headFormat, lc.Username, lc.Username, lc.Ranking, lc.Username)
2727

28-
acceptedPercent := lc.Categories[len(lc.Categories)-1].Total.Solved * 100 / lc.Categories[len(lc.Categories)-1].Total.Total
28+
// 没有提供 Golang 解答方法的题目
29+
canNotSolve := 2
30+
acceptedPercent := lc.Categories[len(lc.Categories)-1].Total.Solved * 100 / (lc.Categories[len(lc.Categories)-1].Total.Total - canNotSolve)
2931

3032
count := lc.Categories.String()
3133

0 commit comments

Comments
 (0)