Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77aeba6

Browse files
2665 : Counter-II
2 parents 60978ba + 4211921 commit 77aeba6

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

2620-Counter/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ n = 10
1616
// Output: [10,11,12]
1717
```
1818

19-
**Explanation:** <br>
20-
counter() = 10 // The first time counter() is called, it returns n. <br>
21-
counter() = 11 // Returns 1 more than the previous time. <br>
22-
counter() = 12 // Returns 1 more than the previous time.
19+
**Explanation:**
20+
21+
counter() = 10 // The first time counter() is called, it returns n.
22+
counter() = 11 // Returns 1 more than the previous time.
23+
counter() = 12 // Returns 1 more than the previous time.
2324

2425
---
2526

@@ -31,7 +32,9 @@ n = -2
3132
// Output: [-2,-1,0,1,2]
3233
```
3334

34-
**Explanation:** <br> counter() initially returns -2. Then increases after each sebsequent call.
35+
**Explanation:**
36+
37+
counter() initially returns -2. Then increases after each sebsequent call.
3538

3639
---
3740

@@ -40,4 +43,4 @@ n = -2
4043
- `0 <= calls.length <= 1000`
4144
- `calls[i] === "call"`
4245

43-
---
46+
---

2621-Sleep/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ Input: millis = 100
1616
// Output: 100
1717
```
1818

19-
**Explanation:** <br>
20-
It should return a promise that resolves after 100ms. <br>
19+
**Explanation:**
20+
21+
It should return a promise that resolves after 100ms.
2122
`let t = Date.now();
2223
sleep(100).then(() => {
2324
console.log(Date.now() - t); // 100
@@ -32,11 +33,13 @@ Input: millis = 200
3233
// Output: 200
3334
```
3435

35-
**Explanation:** <br> It should return a promise that resolves after 200ms.
36+
**Explanation:**
37+
38+
It should return a promise that resolves after 200ms.
3639

3740
---
3841

3942
### Constraints:
4043
- `1 <= millis <= 1000`
4144

42-
---
45+
---

0 commit comments

Comments
 (0)