Skip to content

Commit 99fff1f

Browse files
committed
Runtime: 63 ms (Top 92.34%) | Memory: 42.5 MB (Top 5.22%)
1 parent 5074612 commit 99fff1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
// Runtime: 63 ms (Top 92.34%) | Memory: 42.5 MB (Top 5.22%)
12
var sortSentence = function(s) {
23
let sortingS = s.split(' ').sort((a,b) => a.substr(-1) - b.substr(-1));
34
slicingS = sortingS.map(word => word.slice(0, -1));
45
return slicingS.join(' ');
5-
};
6+
};

0 commit comments

Comments
 (0)