From 56f37806cac317895ca1785b2e526343ff07426d Mon Sep 17 00:00:00 2001
From: jinbudaily <18336218010@163.com>
Date: Thu, 27 Jul 2023 14:32:16 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=93=88=E5=B8=8C?=
=?UTF-8?q?=E8=A1=A8=E9=A2=9D=E5=A4=96=E9=A2=98=E7=9B=AE=20=E6=8E=92?=
=?UTF-8?q?=E7=89=88=E6=A0=BC=E5=BC=8F=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...04\345\255\227\347\254\246\344\270\262.md" | 15 +++++-----
...36\346\226\207\351\223\276\350\241\250.md" | 1 +
...70\347\224\250\345\255\227\347\254\246.md" | 28 ++++++++++++-------
3 files changed, 27 insertions(+), 17 deletions(-)
diff --git "a/problems/0205.\345\220\214\346\236\204\345\255\227\347\254\246\344\270\262.md" "b/problems/0205.\345\220\214\346\236\204\345\255\227\347\254\246\344\270\262.md"
index a507638c35..e07ab746d9 100644
--- "a/problems/0205.\345\220\214\346\236\204\345\255\227\347\254\246\344\270\262.md"
+++ "b/problems/0205.\345\220\214\346\236\204\345\255\227\347\254\246\344\270\262.md"
@@ -29,7 +29,7 @@
提示:可以假设 s 和 t 长度相同。
-# 思路
+## 思路
字符串没有说都是小写字母之类的,所以用数组不合适了,用map来做映射。
@@ -61,9 +61,9 @@ public:
```
-# 其他语言版本
+## 其他语言版本
-## Java
+### Java
```java
class Solution {
@@ -87,7 +87,7 @@ class Solution {
}
```
-## Python
+### Python
```python
class Solution:
@@ -110,7 +110,7 @@ class Solution:
return True
```
-## Go
+### Go
```go
func isIsomorphic(s string, t string) bool {
@@ -132,7 +132,7 @@ func isIsomorphic(s string, t string) bool {
}
```
-## JavaScript
+### JavaScript
```js
var isIsomorphic = function(s, t) {
@@ -156,7 +156,7 @@ var isIsomorphic = function(s, t) {
};
```
-## TypeScript
+### TypeScript
```typescript
function isIsomorphic(s: string, t: string): boolean {
@@ -183,3 +183,4 @@ function isIsomorphic(s: string, t: string): boolean {
+
diff --git "a/problems/0234.\345\233\236\346\226\207\351\223\276\350\241\250.md" "b/problems/0234.\345\233\236\346\226\207\351\223\276\350\241\250.md"
index 18b397e32f..fef942fc49 100644
--- "a/problems/0234.\345\233\236\346\226\207\351\223\276\350\241\250.md"
+++ "b/problems/0234.\345\233\236\346\226\207\351\223\276\350\241\250.md"
@@ -432,3 +432,4 @@ function reverseList(head: ListNode | null): ListNode | null {
+
diff --git "a/problems/1002.\346\237\245\346\211\276\345\270\270\347\224\250\345\255\227\347\254\246.md" "b/problems/1002.\346\237\245\346\211\276\345\270\270\347\224\250\345\255\227\347\254\246.md"
index a53148b313..1138d7fc2f 100644
--- "a/problems/1002.\346\237\245\346\211\276\345\270\270\347\224\250\345\255\227\347\254\246.md"
+++ "b/problems/1002.\346\237\245\346\211\276\345\270\270\347\224\250\345\255\227\347\254\246.md"
@@ -30,7 +30,7 @@ words[i] 由小写英文字母组成
-# 思路
+## 思路
这道题意一起就有点绕,不是那么容易懂,其实就是26个小写字符中有字符 在所有字符串里都出现的话,就输出,重复的也算。
@@ -140,7 +140,7 @@ public:
## 其他语言版本
-Java:
+### Java:
```Java
class Solution {
@@ -174,7 +174,8 @@ class Solution {
}
}
```
-Python
+### Python
+
```python
class Solution:
def commonChars(self, words: List[str]) -> List[str]:
@@ -218,7 +219,8 @@ class Solution:
return l
```
-javaScript
+### JavaScript
+
```js
var commonChars = function (words) {
let res = []
@@ -285,7 +287,8 @@ var commonChars = function(words) {
}
```
-TypeScript
+### TypeScript
+
```ts
console.time("test")
let str: string = ""
@@ -321,7 +324,8 @@ TypeScript
return str.split("")
```
-GO
+### GO
+
```golang
func commonChars(words []string) []string {
length:=len(words)
@@ -357,7 +361,8 @@ func min(a,b int)int{
}
```
-Swift:
+### Swift:
+
```swift
func commonChars(_ words: [String]) -> [String] {
var res = [String]()
@@ -397,7 +402,8 @@ func commonChars(_ words: [String]) -> [String] {
}
```
-C:
+### C:
+
```c
//若两个哈希表定义为char数组(每个单词的最大长度不会超过100,因此可以用char表示),可以提高时间和空间效率
void updateHashTable(int* hashTableOne, int* hashTableTwo) {
@@ -449,7 +455,8 @@ char ** commonChars(char ** words, int wordsSize, int* returnSize){
return ret;
}
```
-Scala:
+### Scala:
+
```scala
object Solution {
def commonChars(words: Array[String]): List[String] = {
@@ -483,7 +490,7 @@ object Solution {
}
```
-Rust:
+### Rust:
```rust
impl Solution {
@@ -522,3 +529,4 @@ impl Solution {
+