Skip to content

Commit

Permalink
feat: add docsify tabs
Browse files Browse the repository at this point in the history
添加tabs切换
  • Loading branch information
yanglbme committed Jul 22, 2020
1 parent d628207 commit 28f2610
Show file tree
Hide file tree
Showing 3,062 changed files with 102,598 additions and 60,105 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
toggleBtnBg: '#42b983'
}
},
tabs: {
persist : true, // default
sync : true, // default
theme : 'classic', // default
tabComments: true, // default
tabHeadings: true // default
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
Expand Down Expand Up @@ -84,6 +91,7 @@
<script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
<script src="//unpkg.com/docsify-dark-mode@0.6.1/dist/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
</body>
</html>
10 changes: 7 additions & 3 deletions lcci/01.01.Is Unique/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<!-- 这里可写通用的实现逻辑 -->


### Python3
<!-- tabs:start -->

### **Python3**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```python
Expand All @@ -39,7 +41,7 @@ class Solution:
return len(sets) == len(astr)
```

### Java
### **Java**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```java
Expand All @@ -59,7 +61,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.01.Is Unique/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
## Solutions


### Python3
<!-- tabs:start -->

### **Python3**

```python
class Solution:
Expand All @@ -46,7 +48,7 @@ class Solution:
return len(sets) == len(astr)
```

### Java
### **Java**

```java
class Solution {
Expand All @@ -65,7 +67,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.02.Check Permutation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
<!-- 这里可写通用的实现逻辑 -->


### Python3
<!-- tabs:start -->

### **Python3**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```python
Expand All @@ -39,7 +41,7 @@ class Solution:
return sorted(s1) == sorted(s2)
```

### Java
### **Java**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```java
Expand All @@ -57,7 +59,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.02.Check Permutation/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@
## Solutions


### Python3
<!-- tabs:start -->

### **Python3**

```python
class Solution:
def CheckPermutation(self, s1: str, s2: str) -> bool:
return sorted(s1) == sorted(s2)
```

### Java
### **Java**

```java
class Solution {
Expand All @@ -72,7 +74,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.03.String to URL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
<!-- 这里可写通用的实现逻辑 -->


### Python3
<!-- tabs:start -->

### **Python3**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```python
Expand All @@ -39,7 +41,7 @@ class Solution:
return S.replace(' ', '%20')
```

### Java
### **Java**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```java
Expand All @@ -61,7 +63,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.03.String to URL/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ The missing numbers are [5,6,8,...], hence the third missing number is 8.
## Solutions


### Python3
<!-- tabs:start -->

### **Python3**

```python
class Solution:
Expand All @@ -66,7 +68,7 @@ class Solution:
return S.replace(' ', '%20')
```

### Java
### **Java**

```java
class Solution {
Expand All @@ -87,7 +89,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.04.Palindrome Permutation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
<!-- 这里可写通用的实现逻辑 -->
用哈希表存储每个字符出现的次数。若次数为奇数的字符超过 1 个,则不是回文排列。

### Python3
<!-- tabs:start -->

### **Python3**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```python
Expand All @@ -45,7 +47,7 @@ class Solution:
return cnt <= 1
```

### Java
### **Java**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```java
Expand Down Expand Up @@ -73,7 +75,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.04.Palindrome Permutation/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
## Solutions


### Python3
<!-- tabs:start -->

### **Python3**

```python
class Solution:
Expand All @@ -45,7 +47,7 @@ class Solution:
return cnt <= 1
```

### Java
### **Java**

```java
class Solution {
Expand All @@ -72,7 +74,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.05.One Away/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ second = &quot;pal&quot;
<!-- 这里可写通用的实现逻辑 -->
遍历两个字符串,逐个字符比较判断。

### Python3
<!-- tabs:start -->

### **Python3**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```python
Expand All @@ -50,7 +52,7 @@ class Solution:
return self.oneEditAway(first[1:], second[1:])
```

### Java
### **Java**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```java
Expand All @@ -77,7 +79,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.05.One Away/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ second = &quot;pal&quot;
## Solutions


### Python3
<!-- tabs:start -->

### **Python3**

```python
class Solution:
Expand All @@ -60,7 +62,7 @@ class Solution:
return self.oneEditAway(first[1:], second[1:])
```

### Java
### **Java**

```java
class Solution {
Expand All @@ -86,7 +88,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
10 changes: 7 additions & 3 deletions lcci/01.06.Compress String/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<!-- 这里可写通用的实现逻辑 -->
双指针遍历字符串求解。

### Python3
<!-- tabs:start -->

### **Python3**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```python
Expand All @@ -51,7 +53,7 @@ class Solution:
return res if len(res) < len(S) else S
```

### Java
### **Java**
<!-- 这里可写当前语言的特殊实现逻辑 -->

```java
Expand All @@ -77,7 +79,9 @@ class Solution {
}
```

### ...
### **...**
```
```

<!-- tabs:end -->
Loading

0 comments on commit 28f2610

Please sign in to comment.