Format the EN markdown files.

This commit is contained in:
krahets 2024-05-01 07:28:18 +08:00
parent 12fc5e49eb
commit 99ad40ea26
2 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ The table below lists several example data, including the input arrays and their
<p align="center"> Table <id> &nbsp; Permutation examples </p> <p align="center"> Table <id> &nbsp; Permutation examples </p>
| Input array | Permutations | | Input array | Permutations |
| :---------- | :----------------------------------------------------------------- | | :---------- | :----------------------------------------------------------------- |
| $[1]$ | $[1]$ | | $[1]$ | $[1]$ |
| $[1, 2]$ | $[1, 2], [2, 1]$ | | $[1, 2]$ | $[1, 2], [2, 1]$ |

View File

@ -10,14 +10,14 @@ The common operations in a double-ended queue are listed below, and the names of
<p align="center"> Table <id> &nbsp; Efficiency of double-ended queue operations </p> <p align="center"> Table <id> &nbsp; Efficiency of double-ended queue operations </p>
| Method Name | Description | Time Complexity | | Method Name | Description | Time Complexity |
| ------------- | --------------------------- | --------------- | | ------------- | -------------------------- | --------------- |
| `pushFirst()` | Add an element to the head | $O(1)$ | | `pushFirst()` | Add an element to the head | $O(1)$ |
| `pushLast()` | Add an element to the tail | $O(1)$ | | `pushLast()` | Add an element to the tail | $O(1)$ |
| `popFirst()` | Remove the first element | $O(1)$ | | `popFirst()` | Remove the first element | $O(1)$ |
| `popLast()` | Remove the last element | $O(1)$ | | `popLast()` | Remove the last element | $O(1)$ |
| `peekFirst()` | Access the first element | $O(1)$ | | `peekFirst()` | Access the first element | $O(1)$ |
| `peekLast()` | Access the last element | $O(1)$ | | `peekLast()` | Access the last element | $O(1)$ |
Similarly, we can directly use the double-ended queue classes implemented in programming languages: Similarly, we can directly use the double-ended queue classes implemented in programming languages: