Skip to content

Commit a4b0a17

Browse files
yanglbmeidoocs
authored andcommitted
style: format code and docs with prettier
1 parent 5927c3d commit a4b0a17

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: solution/0700-0799/0729.My Calendar I/Solution.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
2-
var MyCalendar = function() {
1+
var MyCalendar = function () {
32
this.calendar = [];
43
};
54

6-
/**
7-
* @param {number} start
5+
/**
6+
* @param {number} start
87
* @param {number} end
98
* @return {boolean}
109
*/
11-
MyCalendar.prototype.book = function(start, end) {
10+
MyCalendar.prototype.book = function (start, end) {
1211
for (const item of this.calendar) {
1312
if (end <= item[0] || item[1] <= start) {
1413
continue;
@@ -19,7 +18,7 @@ MyCalendar.prototype.book = function(start, end) {
1918
return true;
2019
};
2120

22-
/**
21+
/**
2322
* Your MyCalendar object will be instantiated and called as such:
2423
* var obj = new MyCalendar()
2524
* var param_1 = obj.book(start,end)

0 commit comments

Comments
 (0)