Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c5b8a6

Browse files
authored
Update and rename 473-Matchsticks to Square.js to 473-Matchsticks-To-Square.js
1 parent867ac44 commit0c5b8a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ function check(arr){
88
returntrue;
99
}
1010

11+
/**
12+
*@param {number[]} matchsticks
13+
*@return {boolean}
14+
*/
1115
varmakesquare=function(matchsticks){
1216
letsides=newArray(4).fill(0),ans=false,size=0;
1317

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp