Skip to content

Commit 094e609

Browse files
just4oncegitbook-bot
authored andcommitted
GitBook: [master] 2 pages modified
1 parent 75f8f47 commit 094e609

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

README.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
# README
22

3-
* To clone with username
4-
* git clone [https://username@github.com/username/repository.git](https://username@github.com/username/repository.git)
5-
* To clone with username and password
6-
* git clone [https://username:password@github.com/username/repository.git](https://username:password@github.com/username/repository.git)
7-
* To clone my repo
8-
* git clone [https://github.com/just4once/leetcode.git](https://github.com/just4once/leetcode.git)
9-
* Next
3+
## Getting Super Powers
4+
5+
To clone the repo
6+
7+
```
8+
git clone https://github.com/just4once/leetcode.git
9+
```
10+
11+
{% hint style="success" %}
12+
Success.
13+
{% endhint %}
14+
15+
To clone the repo with username
16+
17+
```
18+
git clone https://username@github.com/username/repository.git
19+
```
20+
21+
To clone the repo with username and password
22+
23+
```
24+
git clone https://username:password@github.com/username/repository.git
25+
```
1026

leetcode/divide-and-conquer/169-majority-element.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@
44

55
[https://leetcode.com/problems/majority-element/description/](https://leetcode.com/problems/majority-element/description/)
66

7-
asd
7+
Given an array of size n, find the majority element. The majority element is the element that appears **more than** `⌊ n/2 ⌋` times.
8+
9+
You may assume that the array is non-empty and the majority element always exist in the array.
10+
11+
**Example 1:**
12+
13+
```text
14+
Input: [3,2,3]
15+
Output: 3
16+
```
17+
18+
**Example 2:**
19+
20+
```text
21+
Input: [2,2,1,1,1,2,2]
22+
Output: 2
23+
```
824

925
## Thought Process {#thought-process}
1026

0 commit comments

Comments
 (0)