Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ func main() {
//leetcode.MakeDirFromTo(problems, 3101, 3200)
//leetcode.MakeDirFromTo(problems, 3201, 3300)
//leetcode.MakeDirFromTo(problems, 3301, 3400)
leetcode.MakeDirFromTo(problems, 3401, 3500)
//leetcode.MakeDirFromTo(problems, 3401, 3500)
leetcode.MakeDirFromTo(problems, 3601, 3700)

// leetcode.MakeDir(problems)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [3602.Hexadecimal and Hexatrigesimal Conversion][title]

> [!WARNING|style:flat]
> This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-algorithm)

## Description

**Example 1:**

```
Input: a = "11", b = "1"
Output: "100"
```

## 题意
> ...

## 题解

### 思路1
> ...
Hexadecimal and Hexatrigesimal Conversion
```go
```


## 结语

如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[awesome-golang-algorithm][me]

[title]: https://leetcode.com/problems/hexadecimal-and-hexatrigesimal-conversion/
[me]: https://github.com/kylesliu/awesome-golang-algorithm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package Solution

func Solution(x bool) bool {
return x
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package Solution

import (
"reflect"
"strconv"
"testing"
)

func TestSolution(t *testing.T) {
// 测试用例
cases := []struct {
name string
inputs bool
expect bool
}{
{"TestCase", true, true},
{"TestCase", true, true},
{"TestCase", false, false},
}

// 开始测试
for i, c := range cases {
t.Run(c.name+" "+strconv.Itoa(i), func(t *testing.T) {
got := Solution(c.inputs)
if !reflect.DeepEqual(got, c.expect) {
t.Fatalf("expected: %v, but got: %v, with inputs: %v",
c.expect, got, c.inputs)
}
})
}
}

// 压力测试
func BenchmarkSolution(b *testing.B) {
}

// 使用案列
func ExampleSolution() {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [3603.Minimum Cost Path with Alternating Directions II][title]

> [!WARNING|style:flat]
> This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-algorithm)

## Description

**Example 1:**

```
Input: a = "11", b = "1"
Output: "100"
```

## 题意
> ...

## 题解

### 思路1
> ...
Minimum Cost Path with Alternating Directions II
```go
```


## 结语

如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[awesome-golang-algorithm][me]

[title]: https://leetcode.com/problems/minimum-cost-path-with-alternating-directions-ii/
[me]: https://github.com/kylesliu/awesome-golang-algorithm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package Solution

func Solution(x bool) bool {
return x
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package Solution

import (
"reflect"
"strconv"
"testing"
)

func TestSolution(t *testing.T) {
// 测试用例
cases := []struct {
name string
inputs bool
expect bool
}{
{"TestCase", true, true},
{"TestCase", true, true},
{"TestCase", false, false},
}

// 开始测试
for i, c := range cases {
t.Run(c.name+" "+strconv.Itoa(i), func(t *testing.T) {
got := Solution(c.inputs)
if !reflect.DeepEqual(got, c.expect) {
t.Fatalf("expected: %v, but got: %v, with inputs: %v",
c.expect, got, c.inputs)
}
})
}
}

// 压力测试
func BenchmarkSolution(b *testing.B) {
}

// 使用案列
func ExampleSolution() {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [3604.Minimum Time to Reach Destination in Directed Graph][title]

> [!WARNING|style:flat]
> This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-algorithm)

## Description

**Example 1:**

```
Input: a = "11", b = "1"
Output: "100"
```

## 题意
> ...

## 题解

### 思路1
> ...
Minimum Time to Reach Destination in Directed Graph
```go
```


## 结语

如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[awesome-golang-algorithm][me]

[title]: https://leetcode.com/problems/minimum-time-to-reach-destination-in-directed-graph/
[me]: https://github.com/kylesliu/awesome-golang-algorithm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package Solution

func Solution(x bool) bool {
return x
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package Solution

import (
"reflect"
"strconv"
"testing"
)

func TestSolution(t *testing.T) {
// 测试用例
cases := []struct {
name string
inputs bool
expect bool
}{
{"TestCase", true, true},
{"TestCase", true, true},
{"TestCase", false, false},
}

// 开始测试
for i, c := range cases {
t.Run(c.name+" "+strconv.Itoa(i), func(t *testing.T) {
got := Solution(c.inputs)
if !reflect.DeepEqual(got, c.expect) {
t.Fatalf("expected: %v, but got: %v, with inputs: %v",
c.expect, got, c.inputs)
}
})
}
}

// 压力测试
func BenchmarkSolution(b *testing.B) {
}

// 使用案列
func ExampleSolution() {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [3605.Minimum Stability Factor of Array][title]

> [!WARNING|style:flat]
> This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-algorithm)

## Description

**Example 1:**

```
Input: a = "11", b = "1"
Output: "100"
```

## 题意
> ...

## 题解

### 思路1
> ...
Minimum Stability Factor of Array
```go
```


## 结语

如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[awesome-golang-algorithm][me]

[title]: https://leetcode.com/problems/minimum-stability-factor-of-array/
[me]: https://github.com/kylesliu/awesome-golang-algorithm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package Solution

func Solution(x bool) bool {
return x
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package Solution

import (
"reflect"
"strconv"
"testing"
)

func TestSolution(t *testing.T) {
// 测试用例
cases := []struct {
name string
inputs bool
expect bool
}{
{"TestCase", true, true},
{"TestCase", true, true},
{"TestCase", false, false},
}

// 开始测试
for i, c := range cases {
t.Run(c.name+" "+strconv.Itoa(i), func(t *testing.T) {
got := Solution(c.inputs)
if !reflect.DeepEqual(got, c.expect) {
t.Fatalf("expected: %v, but got: %v, with inputs: %v",
c.expect, got, c.inputs)
}
})
}
}

// 压力测试
func BenchmarkSolution(b *testing.B) {
}

// 使用案列
func ExampleSolution() {
}
32 changes: 32 additions & 0 deletions leetcode/3601-3700/3606.Coupon-Code-Validator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# [3606.Coupon Code Validator][title]

> [!WARNING|style:flat]
> This question is temporarily unanswered if you have good ideas. Welcome to [Create Pull Request PR](https://github.com/kylesliu/awesome-golang-algorithm)

## Description

**Example 1:**

```
Input: a = "11", b = "1"
Output: "100"
```

## 题意
> ...

## 题解

### 思路1
> ...
Coupon Code Validator
```go
```


## 结语

如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:[awesome-golang-algorithm][me]

[title]: https://leetcode.com/problems/coupon-code-validator/
[me]: https://github.com/kylesliu/awesome-golang-algorithm
5 changes: 5 additions & 0 deletions leetcode/3601-3700/3606.Coupon-Code-Validator/Solution.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package Solution

func Solution(x bool) bool {
return x
}
Loading
Loading