Skip to content

Commit

Permalink
Update and rename 473-Matchsticks to Square.js to 473-Matchsticks-To-…
Browse files Browse the repository at this point in the history
…Square.js
  • Loading branch information
Ahmad-A0 authored Jul 13, 2022
1 parent 867ac44 commit 0c5b8a6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ function check(arr){
return true;
}

/**
* @param {number[]} matchsticks
* @return {boolean}
*/
var makesquare = function(matchsticks) {
let sides = new Array(4).fill(0), ans = false, size = 0;

Expand Down

0 comments on commit 0c5b8a6

Please sign in to comment.